RemoteIP returns the IP address of the client that sent the request. IPv6 addresses are returned expanded. For example, "2001:db8::1" becomes "2001:0db8:0000:0000:0000:0000:0000:0001". Note that if you are behind reverse proxy(ies), this method returns the IP of the last connecting proxy.
()
| 91 | // Note that if you are behind reverse proxy(ies), this method returns |
| 92 | // the IP of the last connecting proxy. |
| 93 | func (e *Event) RemoteIP() string { |
| 94 | ip, _, _ := net.SplitHostPort(e.Request.RemoteAddr) |
| 95 | parsed, _ := netip.ParseAddr(ip) |
| 96 | return parsed.StringExpanded() |
| 97 | } |
| 98 | |
| 99 | // FindUploadedFiles extracts all form files of "key" from a http request |
| 100 | // and returns a slice with filesystem.File instances (if any). |
no outgoing calls