From 9cd79a80eec4f126d71e27d0e88dc53e6db66f93 Mon Sep 17 00:00:00 2001 From: tgyKomgo <52910426+tgyKomgo@users.noreply.github.com> Date: Fri, 24 Apr 2020 13:56:03 +0200 Subject: [PATCH] p2p/enode: update code comment Since commit b90cdbaa79cfe438aab0f1389d35980f3d38ec84 it's possible to specify enode Url using domain name, but under code comment it still mentionned that only IP Address is allow. --- p2p/enode/urlv4.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/enode/urlv4.go b/p2p/enode/urlv4.go index 2e3f9ba00e..628dcf12b7 100644 --- a/p2p/enode/urlv4.go +++ b/p2p/enode/urlv4.go @@ -59,7 +59,7 @@ func MustParseV4(rawurl string) *Node { // // 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 -// 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 // TCP and UDP (discovery) ports differ, the UDP port is specified as // query parameter "discport".