small pixel drawing of a pufferfish j3s.sh

debug garbage
Jes Olson j3s@c3f.net
Fri, 18 Feb 2022 01:24:21 -0500
commit

44c8f4257d617925cc075d98f7a445e9238d0930

parent

64b50d2247c8f41457bb0a449567470c0ab876c6

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M main.gomain.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) + } + } }