aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-18 07:50:31 +0800
committerFelix Lange <fjl@twurst.com>2015-04-30 20:57:33 +0800
commitfc747ef4a649cd90aec5193a8af6b7accb5eb03f (patch)
treeb81f4b1fb00abd2bf05b4d586b0b3f08d2011cd5 /p2p/server_test.go
parent3fef60190384106af390dd23a65384b9cc6e4a28 (diff)
downloadgo-tangerine-fc747ef4a649cd90aec5193a8af6b7accb5eb03f.tar
go-tangerine-fc747ef4a649cd90aec5193a8af6b7accb5eb03f.tar.gz
go-tangerine-fc747ef4a649cd90aec5193a8af6b7accb5eb03f.tar.bz2
go-tangerine-fc747ef4a649cd90aec5193a8af6b7accb5eb03f.tar.lz
go-tangerine-fc747ef4a649cd90aec5193a8af6b7accb5eb03f.tar.xz
go-tangerine-fc747ef4a649cd90aec5193a8af6b7accb5eb03f.tar.zst
go-tangerine-fc747ef4a649cd90aec5193a8af6b7accb5eb03f.zip
p2p/discover: new endpoint format
This commit changes the discovery protocol to use the new "v4" endpoint format, which allows for separate UDP and TCP ports and makes it possible to discover the UDP address after NAT.
Diffstat (limited to 'p2p/server_test.go')
-rw-r--r--p2p/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server_test.go b/p2p/server_test.go
index 53cc3c258..86514b650 100644
--- a/p2p/server_test.go
+++ b/p2p/server_test.go
@@ -102,7 +102,7 @@ func TestServerDial(t *testing.T) {
// tell the server to connect
tcpAddr := listener.Addr().(*net.TCPAddr)
- srv.SuggestPeer(&discover.Node{IP: tcpAddr.IP, TCPPort: tcpAddr.Port})
+ srv.SuggestPeer(&discover.Node{IP: tcpAddr.IP, TCP: uint16(tcpAddr.Port)})
select {
case conn := <-accepted: