Enable DNS names without an interface name.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-01-12 14:38:26 -08:00
parent c61d51363d
commit 853b9ce916

View File

@ -6068,7 +6068,7 @@ sub isolate_source_interface( $ ) {
if ( $source =~ /^(.+?):(.+)$/ ) {
$iiface = $1;
$inets = $2;
} elsif ( $source =~ /^!?(?:\+|&|~|%|\^|\d+\.)/ ) {
} elsif ( $source =~ /^!?(?:\+|&|~|%|\^|\d+\.|.+\..+\.)/ ) {
$inets = $source;
} else {
$iiface = $source;
@ -6178,7 +6178,7 @@ sub isolate_dest_interface( $$$$ ) {
if ( $dest =~ /^(.+?):(.+)$/ ) {
$diface = $1;
$dnets = $2;
} elsif ( $dest =~ /^!?(?:\+|&|%|~|\^|\d+\.)/ ) {
} elsif ( $dest =~ /^!?(?:\+|&|%|~|\^|\d+\.|.+\..+\.)/ ) {
$dnets = $dest;
} else {
$diface = $dest;