BBlack has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/243881

Change subject: X-Client-IP regex fixup: whole string must match IP chars
......................................................................

X-Client-IP regex fixup: whole string must match IP chars

Change-Id: Ifa29eb8cb0e9adc514dd730892caea0b9ac7e8c2
---
M modules/varnish/templates/vcl/wikimedia.vcl.erb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/81/243881/1

diff --git a/modules/varnish/templates/vcl/wikimedia.vcl.erb 
b/modules/varnish/templates/vcl/wikimedia.vcl.erb
index 48a1a08..7427e34 100644
--- a/modules/varnish/templates/vcl/wikimedia.vcl.erb
+++ b/modules/varnish/templates/vcl/wikimedia.vcl.erb
@@ -426,7 +426,7 @@
 
        // If XCIP not set above, or looks invalid due to bad external XFF
        // input, just alias to XRIP
-       if (!req.http.X-Client-IP || req.http.X-Client-IP !~ "[0-9a-fA-F:.]+") {
+       if (!req.http.X-Client-IP || req.http.X-Client-IP !~ 
"^[0-9a-fA-F:.]+$") {
                set req.http.X-Client-IP = req.http.X-Real-IP;
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/243881
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifa29eb8cb0e9adc514dd730892caea0b9ac7e8c2
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to