mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-30 14:42:01 +02:00
Make routestopped work
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8995 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
@ -418,7 +418,7 @@ sub process_routestopped() {
|
|||||||
|
|
||||||
for my $host ( split /,/, $hosts ) {
|
for my $host ( split /,/, $hosts ) {
|
||||||
validate_host $host, 1;
|
validate_host $host, 1;
|
||||||
push @hosts, "$interface:$host";
|
push @hosts, "$interface|$host";
|
||||||
}
|
}
|
||||||
|
|
||||||
unless ( $options eq '-' ) {
|
unless ( $options eq '-' ) {
|
||||||
@ -439,11 +439,11 @@ sub process_routestopped() {
|
|||||||
}
|
}
|
||||||
} elsif ( $option eq 'source' ) {
|
} elsif ( $option eq 'source' ) {
|
||||||
for my $host ( split /,/, $hosts ) {
|
for my $host ( split /,/, $hosts ) {
|
||||||
$source{"$interface:$host"} = 1;
|
$source{"$interface|$host"} = 1;
|
||||||
}
|
}
|
||||||
} elsif ( $option eq 'dest' ) {
|
} elsif ( $option eq 'dest' ) {
|
||||||
for my $host ( split /,/, $hosts ) {
|
for my $host ( split /,/, $hosts ) {
|
||||||
$dest{"$interface:$host"} = 1;
|
$dest{"$interface|host"} = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
warning_message "Unknown routestopped option ( $option ) ignored" unless $option eq 'critical';
|
warning_message "Unknown routestopped option ( $option ) ignored" unless $option eq 'critical';
|
||||||
@ -455,7 +455,7 @@ sub process_routestopped() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for my $host ( @allhosts ) {
|
for my $host ( @allhosts ) {
|
||||||
my ( $interface, $h ) = split /:/, $host;
|
my ( $interface, $h ) = split /\|/, $host;
|
||||||
my $source = match_source_net $h;
|
my $source = match_source_net $h;
|
||||||
my $dest = match_dest_net $h;
|
my $dest = match_dest_net $h;
|
||||||
my $sourcei = match_source_dev $interface;
|
my $sourcei = match_source_dev $interface;
|
||||||
|
Reference in New Issue
Block a user