wgengine/magicsock: stop disco activity on IPN stop

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-07-30 13:48:32 -07:00
parent c180abd7cf
commit 915f65ddae
2 changed files with 29 additions and 5 deletions

View File

@@ -1262,6 +1262,7 @@ func initAddrSet(as *AddrSet) {
func TestDiscoMessage(t *testing.T) {
c := newConn()
c.logf = t.Logf
c.privateKey = key.NewPrivate()
peer1Pub := c.DiscoPublicKey()
peer1Priv := c.discoPrivate