You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
5 years ago
..
derphttp net/netcheck: fix HTTPS fallback bug from earlier today 5 years ago
derpmap all: make client use server-provided DERP map, add DERP region support 5 years ago
derp.go derp: prevent readFrame() from reading more than len(b) bytes. 5 years ago
derp_client.go derp, magicsock: send new "peer gone" frames when previous sender disconnects 5 years ago
derp_server.go derp/derp_server: unregisterClient() for replaced client connections. 5 years ago
derp_test.go derp, netcheck: make tests listen on localhost only 5 years ago