More redaction and less noise

master
dma 7 years ago
parent 13d2e049c7
commit 96061fb18d

@ -410,15 +410,19 @@ func (c *socksChainSession) forwardTraffic(tls bool) {
} }
if err != nil { if err != nil {
x509ValidationError := STR_REDACTED
if !FirewallConfig.LogRedact {
x509ValidationError = err.Error()
}
if c.pinfo.Sandbox != "" { if c.pinfo.Sandbox != "" {
log.Errorf("TLSGuard violation: Dropping traffic from %s (sandbox: %s) to %s: %v", c.pinfo.ExePath, c.pinfo.Sandbox, dest, err) log.Errorf("TLSGuard violation: Dropping traffic from %s (sandbox: %s) to %s: %s", c.pinfo.ExePath, c.pinfo.Sandbox, dest, x509ValidationError)
} else { } else {
log.Errorf("TLSGuard violation: Dropping traffic from %s (unsandboxed) to %s: %v", c.pinfo.ExePath, dest, err) log.Errorf("TLSGuard violation: Dropping traffic from %s (unsandboxed) to %s: %s", c.pinfo.ExePath, dest, x509ValidationError)
} }
return return
} else { } /*else {
log.Notice("TLSGuard approved certificate presented for connection to: ", dest) log.Notice("TLSGuard approved certificate presented for connection to: ", dest)
} } */
} }
var wg sync.WaitGroup var wg sync.WaitGroup

Loading…
Cancel
Save