You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/logpolicy
Andrew Dunham 208a32af5b 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>
3 weeks ago
..
logpolicy.go logpolicy: fix nil pointer dereference with invalid TS_LOG_TARGET 3 weeks ago
logpolicy_test.go logpolicy: fix nil pointer dereference with invalid TS_LOG_TARGET 3 weeks ago
maybe_syspolicy.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago