wgengine/magicsock: log better with less spam on transition to stopped state

Required a minor test update too, which now needs a private key to get far
enough to test the thing being tested.
This commit is contained in:
Brad Fitzpatrick
2020-07-27 10:19:05 -07:00
parent 69f3ceeb7c
commit fe68841dc7
2 changed files with 20 additions and 6 deletions

View File

@ -215,8 +215,9 @@ func TestNewConn(t *testing.T) {
t.Fatal(err)
}
defer conn.Close()
conn.Start()
conn.SetDERPMap(stuntest.DERPMapOf(stunAddr.String()))
conn.SetPrivateKey(wgcfg.PrivateKey(key.NewPrivate()))
conn.Start()
go func() {
var pkt [64 << 10]byte