mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
zoneconf.cgi: Skip checks for non-existing zones
On systems with RED on PPP and no BLUE or ORANGE zones, there would always be an error when handling non-existant input. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
154bb705b1
commit
bb90622c2c
@@ -211,6 +211,8 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{"save"}) {
|
||||
my $mac = $_->[0];
|
||||
my $nic_access = $cgiparams{"ACCESS $uc $mac"};
|
||||
|
||||
next unless ($nic_access);
|
||||
|
||||
if ($nic_access ne "NONE") {
|
||||
if ($VALIDATE_nic_check{"RESTRICT $mac"}) { # If this interface is already assigned to RED in PPP mode, throw an error
|
||||
$VALIDATE_error = $Lang::tr{"zoneconf val ppp assignment error"};
|
||||
|
||||
Reference in New Issue
Block a user