Skip to content

Commit 66c8cdb

Browse files
committed
remove irrelevant change
1 parent 5b7016e commit 66c8cdb

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

p2p/net/nat/nat.go

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ func DiscoverNAT(ctx context.Context) (*NAT, error) {
4343
extIP, err := natInstance.GetExternalAddress()
4444
if err == nil {
4545
extAddr, _ = netip.AddrFromSlice(extIP)
46-
fmt.Println(extAddr)
4746
}
4847

4948
// Log the device addr.

p2p/net/nat/nat_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func TestAddMapping(t *testing.T) {
4545
require.False(t, found, "didn't expect a port mapping for unmapped protocol")
4646
mapped, found := nat.GetMapping("tcp", 10000)
4747
require.True(t, found, "expected port mapping")
48-
// go1.23 change: https://github.com/golang/go/issues/68113
4948
addr, _ := netip.AddrFromSlice(net.IPv4(1, 2, 3, 4))
5049
require.Equal(t, netip.AddrPortFrom(addr, 1234), mapped)
5150
}

0 commit comments

Comments
 (0)