We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4247ee4 commit 9dec3e2Copy full SHA for 9dec3e2
1 file changed
pkg/jwtmanager/jwtcache.go
@@ -60,6 +60,10 @@ func JWTCacheHandler(next http.Handler) http.Handler {
60
if realIP == "" {
61
realIP, _, _ = net.SplitHostPort(r.RemoteAddr)
62
}
63
+ if strings.Contains(realIP, ",") {
64
+ parts := strings.Split(realIP, ",")
65
+ realIP = strings.TrimSpace(parts[0])
66
+ }
67
log.Debugf("request ip: %s", realIP)
68
for _, wip := range ipWhitelist {
69
if realIP == wip {
0 commit comments