control/controlclient: fix TS_DEBUG_MAP on requests

The concrete type being encoded changed from a value to pointer
earlier and this was never adjusted.

(People don't frequently use TS_DEBUG_MAP to see requests, so it went
unnoticed until now.)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-03-29 12:42:43 -07:00
parent f0863346c2
commit 12ae2d73b3
1 changed files with 1 additions and 1 deletions

View File

@ -950,7 +950,7 @@ func encode(v interface{}, serverKey *wgkey.Key, mkey *wgkey.Private) ([]byte, e
return nil, err
}
if debugMap {
if _, ok := v.(tailcfg.MapRequest); ok {
if _, ok := v.(*tailcfg.MapRequest); ok {
log.Printf("MapRequest: %s", b)
}
}