Skip to content

Commit

Permalink
remove irrelevant change
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Sep 13, 2024
1 parent 5b7016e commit 66c8cdb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion p2p/net/nat/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion p2p/net/nat/nat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 66c8cdb

Please sign in to comment.