httplog: off by one ...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
becd5526f5
commit
ea6b44a78c
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ func LogRequest(r *http.Request, statusCode int) {
|
|||
|
||||
func RealIP(r *http.Request) string {
|
||||
rip := RealIPs(r)
|
||||
return rip[len(rip)]
|
||||
return rip[len(rip)-1]
|
||||
}
|
||||
|
||||
func RealIPs(r *http.Request) (ips []string) {
|
||||
|
|
Loading…
Reference in a new issue