Authored by htoooth

fix

... ... @@ -20,16 +20,16 @@ const APP_NAME = {
module.exports = () => {
const handlers = compose([
qpsPath,
// qpsPath,
disableBelow,
xhrFilter,
whitelistIpFilter,
userFilter,
whitelistPathFilter,
userAgentFilter,
ipFilter,
qps
// whitelistIpFilter,
// userFilter,
// whitelistPathFilter,
// userAgentFilter,
// ipFilter,
// qps
]);
return async(m) => {
... ...
... ... @@ -32,9 +32,9 @@ module.exports = async({user}, next) => {
const app = user.app;
if (_.get(zk, `${app}.close.risk`, false)) {
return next();
}
// if (_.get(zk, `${app}.close.risk`, false)) {
// return next();
// }
const ip = user.ip;
const path = user.path;
... ...
... ... @@ -43,7 +43,7 @@ const server = {
}
}
logger.info('[server] handle OK [%s]', data);
// logger.debug('[server] handle OK [%s]', data);
}, {concurrency: 2});
} catch (e) {
logger.error('[server] handle ERROR [%s]', e);
... ...