wgengine/magicsock: log when home DERP server changes.

This commit is contained in:
David Anderson 2020-03-05 17:18:05 -08:00
parent 61f3fda405
commit 4f5c0da1ae

View File

@ -353,6 +353,7 @@ func (c *Conn) setNearestDERP(derpNum int) (wantDERP bool) {
return true
}
c.myDerp = derpNum
c.logf("home DERP server is now %s", derpHost(derpNum))
for i, ad := range c.activeDerp {
go ad.c.NotePreferred(i == c.myDerp)
}