Authored by htoooth

fix

@@ -20,16 +20,16 @@ const APP_NAME = { @@ -20,16 +20,16 @@ const APP_NAME = {
20 20
21 module.exports = () => { 21 module.exports = () => {
22 const handlers = compose([ 22 const handlers = compose([
23 - qpsPath, 23 + // qpsPath,
24 24
25 disableBelow, 25 disableBelow,
26 xhrFilter, 26 xhrFilter,
27 - whitelistIpFilter,  
28 - userFilter,  
29 - whitelistPathFilter,  
30 - userAgentFilter,  
31 - ipFilter,  
32 - qps 27 + // whitelistIpFilter,
  28 + // userFilter,
  29 + // whitelistPathFilter,
  30 + // userAgentFilter,
  31 + // ipFilter,
  32 + // qps
33 ]); 33 ]);
34 34
35 return async(m) => { 35 return async(m) => {
@@ -32,9 +32,9 @@ module.exports = async({user}, next) => { @@ -32,9 +32,9 @@ module.exports = async({user}, next) => {
32 32
33 const app = user.app; 33 const app = user.app;
34 34
35 - if (_.get(zk, `${app}.close.risk`, false)) {  
36 - return next();  
37 - } 35 + // if (_.get(zk, `${app}.close.risk`, false)) {
  36 + // return next();
  37 + // }
38 38
39 const ip = user.ip; 39 const ip = user.ip;
40 const path = user.path; 40 const path = user.path;
@@ -43,7 +43,7 @@ const server = { @@ -43,7 +43,7 @@ const server = {
43 } 43 }
44 } 44 }
45 45
46 - logger.info('[server] handle OK [%s]', data); 46 + // logger.debug('[server] handle OK [%s]', data);
47 }, {concurrency: 2}); 47 }, {concurrency: 2});
48 } catch (e) { 48 } catch (e) {
49 logger.error('[server] handle ERROR [%s]', e); 49 logger.error('[server] handle ERROR [%s]', e);