[SR-Users] [permissions] allow_source_address_group() always return -1
Iñaki Baz Castillo
ibc at aliax.net
Fri Dec 4 14:50:21 CET 2015
Please forget me...
if ($var(group) != -1)
so yes, 20 != 1...
Sorry!
2015-12-04 14:48 GMT+01:00 Iñaki Baz Castillo <ibc at aliax.net>:
> 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>
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the sr-users
mailing list