wgengine/netstack: delete some dead code, old comment, use atomic int types

Noticed while looking at something else; #cleanup.

Change-Id: Icde7749363014eab9bebe1dd80708f5491f933d1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-12-22 12:53:56 -08:00
committed by Brad Fitzpatrick
parent 82b9689e25
commit caa2fe394f
2 changed files with 7 additions and 13 deletions

View File

@ -8,7 +8,6 @@ import (
"fmt"
"net/netip"
"runtime"
"sync/atomic"
"testing"
"tailscale.com/ipn"
@ -423,8 +422,8 @@ func TestShouldProcessInbound(t *testing.T) {
i.atomicIsLocalIPFunc.Store(func(netip.Addr) bool { return false })
// Set the PeerAPI port to the Dst port above.
atomic.StoreUint32(&i.peerapiPort4Atomic, 5555)
atomic.StoreUint32(&i.peerapiPort6Atomic, 5555)
i.peerapiPort4Atomic.Store(5555)
i.peerapiPort6Atomic.Store(5555)
},
want: false,
},