forked from extern/shorewall_code
Disallow standard providers in the routes file
This commit is contained in:
parent
053da3a2c0
commit
1ae9a3185a
@ -655,13 +655,13 @@ sub add_a_route( ) {
|
||||
for ( keys %providers ) {
|
||||
if ( $providers{$_}{number} == $provider_number ) {
|
||||
$provider = $_;
|
||||
$found = 1;
|
||||
$found = $providers{$provider}{physical};
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fatal_error "Unknown provider ($provider)" unless $found;
|
||||
fatal_error "Unknown or invalid provider ($provider)" unless $found;
|
||||
}
|
||||
|
||||
validate_net ( $dest, 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user