mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Firewall: deleted subnet from source and target addresses if manually used
This commit is contained in:
committed by
Michael Tremer
parent
f0dc00d80f
commit
f4d5310dec
@@ -1553,6 +1553,11 @@ sub newrule
|
||||
}
|
||||
}
|
||||
}
|
||||
# Split manual source and target address and delete the subnet
|
||||
my ($sip,$scidr) = split("/",$fwdfwsettings{$fwdfwsettings{'grp1'}});
|
||||
if ($scidr eq '32'){$fwdfwsettings{$fwdfwsettings{'grp1'}}=$sip;}
|
||||
my ($dip,$dcidr) = split("/",$fwdfwsettings{$fwdfwsettings{'grp2'}});
|
||||
if ($scidr eq '32'){$fwdfwsettings{$fwdfwsettings{'grp2'}}=$dip;}
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'fwdfw addrule'});
|
||||
&Header::closebox();
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'fwdfw source'});
|
||||
|
||||
Reference in New Issue
Block a user