Merge pull request #401 from Foxandxss/patch-1

Change request's "ips" regex to match others.
This commit is contained in:
TJ Holowaychuk 2015-01-29 09:25:16 -08:00
commit 83b2ac0ffc

View file

@ -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*/)
: []; : [];
}, },