forked from Mirrors/freeswitch
adding sipcli to this one too already been using it on conf.fs.org
This commit is contained in:
parent
d4b9eb7ee6
commit
27dd568892
|
@ -13,7 +13,7 @@ while ($c->connected()) {
|
|||
my $user_agent = $event->getHeader('user-agent');
|
||||
my $network_ip = $event->getHeader('network-ip');
|
||||
|
||||
if ($user_agent =~ m/friendly-scanner/) {
|
||||
if ($user_agent =~ m/(friendly-scanner|sipcli)/i) {
|
||||
system("/sbin/iptables -I INPUT -s $network_ip -j DROP");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue