From 12ae2d73b35c73653cea9b22ed2d1e8d1afdb5e1 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 29 Mar 2021 12:42:43 -0700 Subject: [PATCH] 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 --- control/controlclient/direct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/controlclient/direct.go b/control/controlclient/direct.go index 57631b72e..47c53ee47 100644 --- a/control/controlclient/direct.go +++ b/control/controlclient/direct.go @@ -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) } }