diff --git a/p2p/net/nat/nat.go b/p2p/net/nat/nat.go index 787842ff70..28ffd4a5b2 100644 --- a/p2p/net/nat/nat.go +++ b/p2p/net/nat/nat.go @@ -43,7 +43,6 @@ func DiscoverNAT(ctx context.Context) (*NAT, error) { extIP, err := natInstance.GetExternalAddress() if err == nil { extAddr, _ = netip.AddrFromSlice(extIP) - fmt.Println(extAddr) } // Log the device addr. diff --git a/p2p/net/nat/nat_test.go b/p2p/net/nat/nat_test.go index 904089b91a..772c876c72 100644 --- a/p2p/net/nat/nat_test.go +++ b/p2p/net/nat/nat_test.go @@ -45,7 +45,6 @@ func TestAddMapping(t *testing.T) { require.False(t, found, "didn't expect a port mapping for unmapped protocol") mapped, found := nat.GetMapping("tcp", 10000) require.True(t, found, "expected port mapping") - // go1.23 change: https://github.com/golang/go/issues/68113 addr, _ := netip.AddrFromSlice(net.IPv4(1, 2, 3, 4)) require.Equal(t, netip.AddrPortFrom(addr, 1234), mapped) }