tailscale/net/tshttpproxy
Maisem Ali eff6a404a6 net/tshttpproxy: use http as the scheme for proxies
Currently we try to use `https://` when we see `https_host`, however
that doesn't work and results in errors like `Received error: fetch
control key: Get "https://controlplane.tailscale.com/key?v=32":
proxyconnect tcp: tls: first record does not look like a TLS handshake`

This indiciates that we are trying to do a HTTPS request to a HTTP
server. Googling suggests that the standard is to use `http` regardless
of `https` or `http` proxy

Updates #4395, #2605

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-04-28 10:45:33 -07:00
..
tshttpproxy.go net/tshttpproxy: support HTTP proxy environment credentials on Windows too 2021-02-18 08:27:37 -08:00
tshttpproxy_future.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
tshttpproxy_linux.go tshttpproxy: support synology proxy configuration 2022-04-21 18:39:00 -07:00
tshttpproxy_synology.go net/tshttpproxy: use http as the scheme for proxies 2022-04-28 10:45:33 -07:00
tshttpproxy_synology_test.go net/tshttpproxy: use http as the scheme for proxies 2022-04-28 10:45:33 -07:00
tshttpproxy_test.go net/tshttpproxy: support HTTP proxy environment credentials on Windows too 2021-02-18 08:27:37 -08:00
tshttpproxy_windows.go net/tshttpproxy: ensure we pass the correct flags to WinHttpOpen on Win7 and Win8.0 2022-03-18 11:05:02 -06:00