Module: kamailio
Branch: master
Commit: 61e57cb14ed1efba4cea7ab5def4252a5fd16e04
URL:
https://github.com/kamailio/kamailio/commit/61e57cb14ed1efba4cea7ab5def4252…
Author: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Committer: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Date: 2019-05-09T13:51:46+02:00
secfilter: Updated example in README file. Use geoip2 module instead geoip [skip ci]
---
Modified: src/modules/secfilter/doc/secfilter_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/61e57cb14ed1efba4cea7ab5def4252…
Patch:
https://github.com/kamailio/kamailio/commit/61e57cb14ed1efba4cea7ab5def4252…
---
diff --git a/src/modules/secfilter/doc/secfilter_admin.xml
b/src/modules/secfilter/doc/secfilter_admin.xml
index da23baf906..ce7b6cea27 100644
--- a/src/modules/secfilter/doc/secfilter_admin.xml
+++ b/src/modules/secfilter/doc/secfilter_admin.xml
@@ -315,10 +315,10 @@
<programlisting format="linespecific">
...
- if (geoip_match("$si", "src")) {
- secf_check_country($gip(src=>cc));
+ if (geoip2_match("$si", "src")) {
+ secf_check_country($gip2(src=>cc));
if ($avp(secfilter) == -2) {
- xlog("L_ALERT", "$rm from $si blocked because
Country '$gip(src=>cc)' is blacklisted");
+ xlog("L_ALERT", "$rm from $si blocked because
Country '$gip2(src=>cc)' is blacklisted");
exit;
}
}