[SR-Users] [permissions] allow_source_address_group() always return -1
Iñaki Baz Castillo
ibc at aliax.net
Fri Dec 4 14:48:25 CET 2015
2015-12-04 14:38 GMT+01:00 Iñaki Baz Castillo <ibc at aliax.net>:
> -----------------------------
> $var(group) = allow_source_address_group();
> if ($var(group) != -1) {
> // ALWAYS HERE :(
>
> xlog("L_WARN", "invalid source IP [si:$si]\n");
> }
> -----------------------------
Interesting. If I add a log:
-----------------------------
$var(group) = allow_source_address_group();
xlog("L_INFO", "rc:$var(group)\n");
if ($var(group) != -1) {
xlog("L_WARN", "invalid source IP [si:$si]\n");
}
-----------------------------
Then I get:
INFO: <script>: rc:20
WARNING: <script>: invalid source IP [si:99.23.86.78]
So the "if" is not satisfaced, how can it be?
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the sr-users
mailing list