User Tools

Site Tools


kemi:performance-tests:5.2.x

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
kemi:performance-tests:5.2.x [2018/12/06 09:42]
miconda [SIPP Scenario]
kemi:performance-tests:5.2.x [2018/12/06 10:28]
miconda
Line 1009: Line 1009:
 function ksr_route_reqinit() function ksr_route_reqinit()
  if not KSR.is_myself_srcip() then  if not KSR.is_myself_srcip() then
- if not KSR.htable.sht_has_name("ipban", "eq", K_si) then+ if KSR.htable.sht_has_name("ipban", "eq", K_si) > 0 then
  -- ip is already blocked  -- ip is already blocked
  KSR.dbg("request from blocked IP - " .. K_rm  KSR.dbg("request from blocked IP - " .. K_rm
Line 1022: Line 1022:
  end  end
  end  end
- if KSR.corex.has_user_agent() then+ if KSR.corex.has_user_agent() > 0 then
  if string.find(K_ua, "friendly-scanner")  if string.find(K_ua, "friendly-scanner")
  or string.find(K_ua, "sipcli") then  or string.find(K_ua, "sipcli") then
Line 1433: Line 1433:
                 return -255;                 return -255;
  
-        if KSR.corex.has_user_agent() :+        if KSR.corex.has_user_agent() > 0 :
             ua = KSR.pv.gete("$ua")             ua = KSR.pv.gete("$ua")
             if (ua.find("friendly-scanner")!=-1             if (ua.find("friendly-scanner")!=-1
kemi/performance-tests/5.2.x.txt ยท Last modified: 2019/01/07 09:05 by miconda