mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-28 04:26:26 -08:00
ipn: don't log IPN messages that may contain an authkey.
Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
1 parent
c350321eec
commit
1eabb5b2d9
1 file changed
+2
-2
+2
-2
@@ -260,10 +260,10 @@ func (bc *BackendClient) send(cmd Command) {
|
||||
cmd.Version = version.Long
|
||||
b, err := json.Marshal(cmd)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed json.Marshal(cmd): %v\n%#v\n", err, cmd)
|
||||
log.Fatalf("Failed json.Marshal(cmd): %v\n", err)
|
||||
}
|
||||
if bytes.Contains(b, jsonEscapedZero) {
|
||||
log.Printf("[unexpected] zero byte in BackendClient.send command: %q", b)
|
||||
log.Printf("[unexpected] zero byte in BackendClient.send command")
|
||||
}
|
||||
bc.sendCommandMsg(b)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user