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 @@ -184,7 +184,7 @@ func (n *Node) TCP() int {
184184 return int (n .tcp )
185185}
186186
187- // UDPEndpoint returns the announced TCP endpoint.
187+ // UDPEndpoint returns the announced UDP endpoint.
188188func (n * Node ) UDPEndpoint () (netip.AddrPort , bool ) {
189189 if ! n .ip .IsValid () || n .ip .IsUnspecified () || n .udp == 0 {
190190 return netip.AddrPort {}, false
@@ -197,7 +197,7 @@ func (n *Node) TCPEndpoint() (netip.AddrPort, bool) {
197197 if ! n .ip .IsValid () || n .ip .IsUnspecified () || n .tcp == 0 {
198198 return netip.AddrPort {}, false
199199 }
200- return netip .AddrPortFrom (n .ip , n .udp ), true
200+ return netip .AddrPortFrom (n .ip , n .tcp ), true
201201}
202202
203203// Pubkey returns the secp256k1 public key of the node, if present.
You can’t perform that action at this time.
0 commit comments