mirror of https://github.com/tailscale/tailscale/
logpolicy: fix nil pointer dereference with invalid TS_LOG_TARGET
When TS_LOG_TARGET is set to an invalid URL, url.Parse returns an error and nil pointer, which caused a panic when accessing u.Host. Now we check the error from url.Parse and log a helpful message while falling back to the default log host. Fixes #17792 Signed-off-by: Andrew Dunham <andrew@tailscale.com>patrickod/swtpm-integration-test
parent
052602752f
commit
208a32af5b
Loading…
Reference in New Issue