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 {
184
184
return int (n .tcp )
185
185
}
186
186
187
- // UDPEndpoint returns the announced TCP endpoint.
187
+ // UDPEndpoint returns the announced UDP endpoint.
188
188
func (n * Node ) UDPEndpoint () (netip.AddrPort , bool ) {
189
189
if ! n .ip .IsValid () || n .ip .IsUnspecified () || n .udp == 0 {
190
190
return netip.AddrPort {}, false
@@ -197,7 +197,7 @@ func (n *Node) TCPEndpoint() (netip.AddrPort, bool) {
197
197
if ! n .ip .IsValid () || n .ip .IsUnspecified () || n .tcp == 0 {
198
198
return netip.AddrPort {}, false
199
199
}
200
- return netip .AddrPortFrom (n .ip , n .udp ), true
200
+ return netip .AddrPortFrom (n .ip , n .tcp ), true
201
201
}
202
202
203
203
// Pubkey returns the secp256k1 public key of the node, if present.
You can’t perform that action at this time.
0 commit comments