summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorAndrew Dunham <andrew@tailscale.com>2025-11-14 11:59:09 -0500
committerAndrew Dunham <andrew@du.nham.ca>2025-11-14 14:03:04 -0500
commit208a32af5b6c306afb797edd793677f3a6db3306 (patch)
tree25c6450b735647636e0ce78624476dae89f29c32 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent052602752f57dd2dc273f65811a0946a6c575bda (diff)
downloadtailscale-208a32af5b6c306afb797edd793677f3a6db3306.tar.xz
tailscale-208a32af5b6c306afb797edd793677f3a6db3306.zip
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>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions