wgengine/magicsock: make log message include DERP port (node)

This commit is contained in:
Brad Fitzpatrick 2020-03-20 13:51:07 -07:00
parent 33bdcabf03
commit 221e7d7767

View File

@ -685,7 +685,7 @@ func (c *Conn) derpWriteChanOfAddr(addr *net.UDPAddr) chan<- derpWriteRequest {
return nil return nil
} }
if c.privateKey.IsZero() { if c.privateKey.IsZero() {
c.logf("DERP lookup of %v with no private key; ignoring", addr.IP) c.logf("DERP lookup of %v with no private key; ignoring", addr)
return nil return nil
} }
ad, ok := c.activeDerp[addr.Port] ad, ok := c.activeDerp[addr.Port]