tailscale/derp
Brad Fitzpatrick 7f68e097dd net/netcheck: fix HTTPS fallback bug from earlier today
My earlier 3fa58303d0 tried to implement
the net/http.Tranhsport.DialTLSContext hook, but I didn't return a
*tls.Conn, so we ended up sending a plaintext HTTP request to an HTTPS
port. The response ended up being Go telling as such, not the
/derp/latency-check handler's response (which is currently still a
404). But we didn't even get the 404.

This happened to work well enough because Go's built-in error response
was still a valid HTTP response that we can measure for timing
purposes, but it's not a great answer. Notably, it means we wouldn't
be able to get a future handler to run server-side and count those
latency requests.
2020-05-29 22:33:08 -07:00
..
derphttp net/netcheck: fix HTTPS fallback bug from earlier today 2020-05-29 22:33:08 -07:00
derpmap all: make client use server-provided DERP map, add DERP region support 2020-05-23 22:31:59 -07:00
derp_client.go derp, magicsock: send new "peer gone" frames when previous sender disconnects 2020-03-22 21:00:47 -07:00
derp_server.go derp/derp_server: unregisterClient() for replaced client connections. 2020-04-10 08:52:30 -07:00
derp_test.go derp, netcheck: make tests listen on localhost only 2020-03-30 11:29:08 -07:00
derp.go derp: prevent readFrame() from reading more than len(b) bytes. 2020-04-10 08:56:23 -07:00