mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: ipv6 range ban rules malfunctioning on ipv4 connections
This commit is contained in:
parent
f87d18bf4e
commit
320f2230f6
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user