Allow [...] around gateway address in the providers file

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-11-09 12:20:01 -08:00
parent 0670ecaf5e
commit c5a586aa37
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -512,6 +512,9 @@ sub process_a_provider( $ ) {
set_interface_option( $interface, 'gateway', 'none' );
} elsif ( $gateway && $gateway ne '-' ) {
( $gateway, $mac ) = split_host_list( $gateway, 0 );
$gateway = $1 if $family == F_IPV6 && $gateway =~ /^\[(.+)\]$/;
validate_address $gateway, 0;
if ( defined $mac ) {