Update auth stuff

This commit is contained in:
Svilen Markov
2025-05-07 19:47:35 +01:00
parent c9e6b774f3
commit ce3a7ee29c
2 changed files with 3 additions and 3 deletions

View File

@@ -380,7 +380,7 @@ func (a *application) addressOfRequest(r *http.Request) string {
}
ips := strings.Split(forwardedFor, ",")
if len(ips) == 0 {
if len(ips) == 0 || ips[0] == "" {
return remoteAddrWithoutPort()
}