Disallow standard providers in the routes file

This commit is contained in:
Tom Eastep 2010-11-26 16:41:30 -08:00
parent 053da3a2c0
commit 1ae9a3185a

View File

@ -655,13 +655,13 @@ sub add_a_route( ) {
for ( keys %providers ) { for ( keys %providers ) {
if ( $providers{$_}{number} == $provider_number ) { if ( $providers{$_}{number} == $provider_number ) {
$provider = $_; $provider = $_;
$found = 1; $found = $providers{$provider}{physical};
last; last;
} }
} }
} }
fatal_error "Unknown provider ($provider)" unless $found; fatal_error "Unknown or invalid provider ($provider)" unless $found;
} }
validate_net ( $dest, 1 ); validate_net ( $dest, 1 );