Merge pull request #401 from Foxandxss/patch-1
Change request's "ips" regex to match others.
This commit is contained in:
commit
83b2ac0ffc
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ module.exports = {
|
||||||
var proxy = this.app.proxy;
|
var proxy = this.app.proxy;
|
||||||
var val = this.get('X-Forwarded-For');
|
var val = this.get('X-Forwarded-For');
|
||||||
return proxy && val
|
return proxy && val
|
||||||
? val.split(/ *, */)
|
? val.split(/\s*,\s*/)
|
||||||
: [];
|
: [];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue