p2p/enode: update code comment

Since commit b90cdbaa79 it's possible to specify enode Url using domain name, but under code comment it still mentionned that only IP Address is allow.
This commit is contained in:
tgyKomgo 2020-04-24 13:56:03 +02:00 committed by GitHub
parent 38aab0aa83
commit 9cd79a80ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 addressor 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".