tailscale/derp/derphttp
Thomas Kosiewski b2ae8fdf80
derp/derphttp: strip port numbers from URL hostname
When trying to set up multiple derper instances meshing with each
other, it turned out that while one can specify an alternative
listening port using the -a flag, the TLS hostname gets incorrectly
determined and includes the set alternative listening port as part of
the hostname. Thus, the TLS hostname validation always fails when the
-mesh-with values have ports.

Updates #9949

Signed-off-by: Thomas Kosiewski <thomas.kosiewski@loft.sh>
2023-10-24 07:27:29 -07:00
..
derphttp_client.go derp/derphttp: strip port numbers from URL hostname 2023-10-24 07:27:29 -07:00
derphttp_server.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
derphttp_test.go all: use Go 1.20's bytes.Clone 2023-02-01 17:39:18 -08:00
mesh_client.go derp: include src IPs in mesh watch messages 2023-08-16 08:46:52 -07:00
websocket.go net/wsconn: accept a remote addr string and plumb it through 2023-08-29 16:57:16 -07:00