all repos — flounder @ 45b3905418e922b12639ff76f0d42a7d453ad02b

A small site builder for the Gemini protocol

fix forwarded IP
alex wennerberg alex@alexwennerberg.com
Sat, 02 Jan 2021 10:21:19 -0800
commit

45b3905418e922b12639ff76f0d42a7d453ad02b

parent

fd90cb7259cd85bf9321f577cf085e434d4cbfa6

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M log.golog.go

@@ -37,9 +37,9 @@ if ipAddr == "" {

ipAddr = req.RemoteAddr } - host, _, err := net.SplitHostPort(req.RemoteAddr) + host, _, err := net.SplitHostPort(ipAddr) if err != nil { - host = req.RemoteAddr + host = ipAddr } uri := req.RequestURI