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(a)aliax.net>et>:
2015-12-04 14:38 GMT+01:00 Iñaki Baz Castillo
<ibc(a)aliax.net>et>:
-----------------------------
$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(a)aliax.net>