mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-03 11:29:39 +01:00
Don't allow '*' in interface names
This commit is contained in:
parent
25ca73ca54
commit
9335ef5745
@ -903,6 +903,8 @@ sub process_interface( $$ ) {
|
|||||||
$root = $interface;
|
$root = $interface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fatal_error "Invalid interface name ($interface)" if $interface =~ /\*/;
|
||||||
|
|
||||||
my $physical = $interface;
|
my $physical = $interface;
|
||||||
my $broadcasts;
|
my $broadcasts;
|
||||||
|
|
||||||
@ -1183,6 +1185,8 @@ sub known_interface($;$)
|
|||||||
|
|
||||||
return $interfaceref if $interfaceref;
|
return $interfaceref if $interfaceref;
|
||||||
|
|
||||||
|
fatal_error "Invalid interface ($interface)" if $interface =~ /\*/;
|
||||||
|
|
||||||
for my $i ( @interfaces ) {
|
for my $i ( @interfaces ) {
|
||||||
$interfaceref = $interfaces{$i};
|
$interfaceref = $interfaces{$i};
|
||||||
my $root = $interfaceref->{root};
|
my $root = $interfaceref->{root};
|
||||||
|
Loading…
Reference in New Issue
Block a user