fix: ipv6 range ban rules malfunctioning on ipv4 connections

This commit is contained in:
Massimo Melina 2020-05-24 14:46:52 +02:00
parent f87d18bf4e
commit 320f2230f6

View File

@ -1472,7 +1472,7 @@ for mask in split(';',mask) do
if addr6 > '' then if addr6 > '' then
result:=ipv6range() result:=ipv6range()
else else
result:=(addr4 >= ipToInt(a[0])) and (addr4 <= ipToInt(a[1])); result:=(pos(':',a[0]) = 0) and (addr4 >= ipToInt(a[0])) and (addr4 <= ipToInt(a[1]));
continue; continue;
end; end;