tailscale/tsweb
Maisem Ali 309c0a13a5 tsweb: add FQDN to Port80Handler to allow HTTPS redirects
When the request comes in say over http://mon, the current
implementation would rewrite it https://mon which causes the cert
validation to fail. This PR keeps the existing behavior intact but also
allows passing in a FQDN to the handler to reroute to the correct
hostname.

Related to https://github.com/tailscale/tailscale/pull/4208#pullrequestreview-913832340

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-03-18 10:16:08 -07:00
..
debug_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
debug.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
jsonhandler_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
jsonhandler.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
log.go tsweb: use a ResponseWriter wrapper to log more accurately. 2020-03-19 20:11:07 -07:00
tsweb_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
tsweb.go tsweb: add FQDN to Port80Handler to allow HTTPS redirects 2022-03-18 10:16:08 -07:00