...
|
...
|
@@ -163,13 +163,13 @@ function ksr_route_reqinit()
|
163
|
163
|
if KSR.htable.sht_match_name("ipban", "eq", srcip) > 0 then
|
164
|
164
|
-- ip is already blocked
|
165
|
165
|
KSR.dbg("request from blocked IP - " .. KSR.kx.get_method()
|
166
|
|
- .. " from " .. KSR.kx.gete_furi() .. " (IP:"
|
|
166
|
+ .. " from " .. KSR.kx.get_furi() .. " (IP:"
|
167
|
167
|
.. srcip .. ":" .. KSR.kx.get_srcport() .. ")\n");
|
168
|
168
|
KSR.x.exit();
|
169
|
169
|
end
|
170
|
170
|
if KSR.pike.pike_check_req() < 0 then
|
171
|
171
|
KSR.err("ALERT: pike blocking " .. KSR.kx.get_method()
|
172
|
|
- .. " from " .. KSR.kx.gete_furi() .. " (IP:"
|
|
172
|
+ .. " from " .. KSR.kx.get_furi() .. " (IP:"
|
173
|
173
|
.. srcip .. ":" .. KSR.kx.get_srcport() .. ")\n");
|
174
|
174
|
KSR.htable.sht_seti("ipban", srcip, 1);
|
175
|
175
|
KSR.x.exit();
|