Commit 3a289851 authored by 陈家荣's avatar 陈家荣

Merge branch 'bugfix_1101_pv_region' into SANDBOX

parents a88f8c32 b8bf81fd
...@@ -119,9 +119,7 @@ var getClientIP = function(req) { ...@@ -119,9 +119,7 @@ var getClientIP = function(req) {
var forwardedIpsStr = headers['x-forwarded-for'] || headers['x-real-ip']; var forwardedIpsStr = headers['x-forwarded-for'] || headers['x-real-ip'];
if (forwardedIpsStr) { if (forwardedIpsStr) {
var ips = forwardedIpsStr.split(","); var ips = forwardedIpsStr.split(",");
console.log(ips);
ipAddress = ips[0]; ipAddress = ips[0];
console.log(ipAddress);
} else { } else {
ipAddress = null; ipAddress = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment