File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ func (n *Node) TCP() int {
189189 return int (n .tcp )
190190}
191191
192- // UDPEndpoint returns the announced TCP endpoint.
192+ // UDPEndpoint returns the announced UDP endpoint.
193193func (n * Node ) UDPEndpoint () (netip.AddrPort , bool ) {
194194 if ! n .ip .IsValid () || n .ip .IsUnspecified () || n .udp == 0 {
195195 return netip.AddrPort {}, false
@@ -202,7 +202,7 @@ func (n *Node) TCPEndpoint() (netip.AddrPort, bool) {
202202 if ! n .ip .IsValid () || n .ip .IsUnspecified () || n .tcp == 0 {
203203 return netip.AddrPort {}, false
204204 }
205- return netip .AddrPortFrom (n .ip , n .udp ), true
205+ return netip .AddrPortFrom (n .ip , n .tcp ), true
206206}
207207
208208// Pubkey returns the secp256k1 public key of the node, if present.
You can’t perform that action at this time.
0 commit comments