summaryrefslogtreecommitdiff
path: root/contrib/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cgi')
-rw-r--r--contrib/cgi/cgi.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cgi/cgi.go b/contrib/cgi/cgi.go
index de0d35f..48af04a 100644
--- a/contrib/cgi/cgi.go
+++ b/contrib/cgi/cgi.go
@@ -147,8 +147,8 @@ func prepareCGIEnv(
"QUERY_STRING=" + request.RawQuery,
}
- host, _, _ := net.SplitHostPort(request.RemoteAddr.String())
- environ = append(environ, "REMOTE_ADDR="+host)
+ host, port, _ := net.SplitHostPort(request.RemoteAddr.String())
+ environ = append(environ, "REMOTE_ADDR="+host, "REMOTE_PORT="+port)
environ = append(
environ,