...
|
...
|
@@ -21,7 +21,8 @@ const IP_WHITE_LIST = [ |
|
|
'218.94.75.58', // 南京办公区域
|
|
|
'218.94.75.50', // 南京办公区域
|
|
|
'218.94.77.166', // 南京办公区域
|
|
|
'222.73.196.18', // B站合作方单击次数快加白名单
|
|
|
|
|
|
// '222.73.196.18', // B站合作方单击次数快加白名单
|
|
|
'123.206.73.107', // 腾讯云出口IP
|
|
|
'139.199.35.21', // 腾讯云出口IP
|
|
|
'139.199.29.44', // 腾讯云出口IP
|
...
|
...
|
@@ -66,10 +67,10 @@ const _excluded = (req) => { |
|
|
let remoteIpSegment = `${remoteIp.split('.').slice(0, 2).join('.')}.`;
|
|
|
|
|
|
return co(function* () {
|
|
|
let cacheIpWhiteList = yield ipWhiteList();
|
|
|
let atWhiteList = yield ipWhiteList(remoteIp);
|
|
|
|
|
|
return Boolean(
|
|
|
_.includes(cacheIpWhiteList, remoteIp) ||
|
|
|
atWhiteList ||
|
|
|
_.includes(IP_WHITE_LIST, remoteIp) ||
|
|
|
_.includes(IP_WHITE_SEGMENT, remoteIpSegment) ||
|
|
|
_.includes(PATH_WHITE_LIST, req.path) ||
|
...
|
...
|
|