Unverified Commit 1aa83290 authored by tgyKomgo's avatar tgyKomgo Committed by GitHub

p2p/enode: update code comment (#20972)

It is possible to specify enode URLs using domain name since
commit b90cdbaa, but the code comment still said that only
IP addresses are allowed.

Co-authored-by: admin@komgo.io <KomgoRocks2018!>
parent 8a2e8faa
...@@ -59,7 +59,7 @@ func MustParseV4(rawurl string) *Node { ...@@ -59,7 +59,7 @@ func MustParseV4(rawurl string) *Node {
// //
// For complete nodes, the node ID is encoded in the username portion // For complete nodes, the node ID is encoded in the username portion
// of the URL, separated from the host by an @ sign. The hostname can // of the URL, separated from the host by an @ sign. The hostname can
// only be given as an IP address, DNS domain names are not allowed. // only be given as an IP address or using DNS domain name.
// The port in the host name section is the TCP listening port. If the // The port in the host name section is the TCP listening port. If the
// TCP and UDP (discovery) ports differ, the UDP port is specified as // TCP and UDP (discovery) ports differ, the UDP port is specified as
// query parameter "discport". // query parameter "discport".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment