Skip to content

Commit 05fbd03

Browse files
Update web.go
Co-authored-by: Copilot <[email protected]>
1 parent 289c781 commit 05fbd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func getClientIP(r *http.Request) string {
5959

6060
// Only trust proxy headers if the connection is from localhost
6161
// Check for various localhost representations
62-
if host == "127.0.0.1" || host == "::1" || host == "localhost" || host == "0.0.0.0" {
62+
if host == "127.0.0.1" || host == "::1" || host == "localhost" {
6363
// Check X-Real-IP first (higher priority)
6464
if realIP := r.Header.Get("X-Real-IP"); realIP != "" {
6565
return realIP

0 commit comments

Comments
 (0)