summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorAndrew Lytvynov <awly@tailscale.com>2025-02-19 17:19:54 -0800
committerGitHub <noreply@github.com>2025-02-19 17:19:54 -0800
commit2c3338c46be073c2d50da6ab7ef187cb3707419e (patch)
tree23fed541dc2550f2e875be3225c92cddd9f55aca /control/controlhttp/controlhttpserver/controlhttpserver.go
parent836c01258de01a38fdd267957eeedab7faf0f4f2 (diff)
downloadtailscale-2c3338c46be073c2d50da6ab7ef187cb3707419e.tar.xz
tailscale-2c3338c46be073c2d50da6ab7ef187cb3707419e.zip
client/tailscale: fix Client.BuildURL and Client.BuildTailnetURL (#15064)
This method uses `path.Join` to build the URL. Turns out with 1.24 this started stripping consecutive "/" characters, so "http://..." in baseURL becomes "http:/...". Also, `c.Tailnet` is a function that returns `c.tailnet`. Using it as a path element would encode as a pointer instead of the tailnet name. Finally, provide a way to prevent escaping of path elements e.g. for `?` in `acl?details=1`. Updates #15015 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions