mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 16:51:18 -08:00
whoIs fell back to the X-Forwarded-For header when WhoIs on the request's remote address failed (only when serving over plain HTTP, as cmd/k8s-proxy does). That header comes from the client, so the identity could come from the request instead of the connection. This fixes this by removing the fallback, so whoIs only uses the connection's remote address. It also asks for TCP only, as the proxy only serves TCP, so a miss does not also try UDP. Updates tailscale/corp#51000 Thank you Emilio Mendoza @a3l6 for reporting Signed-off-by: chaosinthecrd <[email protected]>