mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 14:48:51 +01: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:
parent
71e7eb26f6
commit
59a9a492a5
@ -418,7 +418,7 @@ sub process_routestopped() {
|
||||
|
||||
for my $host ( split /,/, $hosts ) {
|
||||
validate_host $host, 1;
|
||||
push @hosts, "$interface:$host";
|
||||
push @hosts, "$interface|$host";
|
||||
}
|
||||
|
||||
unless ( $options eq '-' ) {
|
||||
@ -439,11 +439,11 @@ sub process_routestopped() {
|
||||
}
|
||||
} elsif ( $option eq 'source' ) {
|
||||
for my $host ( split /,/, $hosts ) {
|
||||
$source{"$interface:$host"} = 1;
|
||||
$source{"$interface|$host"} = 1;
|
||||
}
|
||||
} elsif ( $option eq 'dest' ) {
|
||||
for my $host ( split /,/, $hosts ) {
|
||||
$dest{"$interface:$host"} = 1;
|
||||
$dest{"$interface|host"} = 1;
|
||||
}
|
||||
} else {
|
||||
warning_message "Unknown routestopped option ( $option ) ignored" unless $option eq 'critical';
|
||||
@ -455,7 +455,7 @@ sub process_routestopped() {
|
||||
}
|
||||
|
||||
for my $host ( @allhosts ) {
|
||||
my ( $interface, $h ) = split /:/, $host;
|
||||
my ( $interface, $h ) = split /\|/, $host;
|
||||
my $source = match_source_net $h;
|
||||
my $dest = match_dest_net $h;
|
||||
my $sourcei = match_source_dev $interface;
|
||||
|
Loading…
Reference in New Issue
Block a user