debug garbage
Jes Olson j3s@c3f.net
Fri, 18 Feb 2022 01:24:21 -0500
1 files changed,
7 insertions(+),
0 deletions(-)
jump to
M
main.go
→
main.go
@@ -194,10 +194,17 @@ }
func ipHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain") + + // this header is always set by tlstunnel ip, _, err := net.SplitHostPort(r.RemoteAddr) if err != nil { fmt.Fprintf(w, "bing bong, fuk ya life") return } fmt.Fprintf(w, ip) + for name, values := range r.Header { + for _, value := range values { + fmt.Fprintf(w, "\n%v: %v\n", name, value) + } + } }