mirror of
https://github.com/yunginnanet/HellPot
synced 2024-06-30 17:50:53 +00:00
Fix remoteaddr from previous commit
This commit is contained in:
parent
4931c51a61
commit
9c7c6c763d
@ -12,7 +12,7 @@ import (
|
|||||||
func robotsTXT(ctx *fasthttp.RequestCtx) {
|
func robotsTXT(ctx *fasthttp.RequestCtx) {
|
||||||
slog := log.With().
|
slog := log.With().
|
||||||
Str("USERAGENT", string(ctx.UserAgent())).
|
Str("USERAGENT", string(ctx.UserAgent())).
|
||||||
Str("REMOTE_ADDR", remoteAddr).
|
Str("REMOTE_ADDR", getRealRemote(ctx)).
|
||||||
Interface("URL", string(ctx.RequestURI())).Logger()
|
Interface("URL", string(ctx.RequestURI())).Logger()
|
||||||
paths := &strings.Builder{}
|
paths := &strings.Builder{}
|
||||||
paths.WriteString("User-agent: *\r\n")
|
paths.WriteString("User-agent: *\r\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user