Stop generation of superfluous routing rules.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-12-21 08:01:25 -08:00
parent ea8efd1c44
commit e93dbdcb99

View File

@ -631,7 +631,10 @@ sub add_a_provider( $$ ) {
$fallback = 1; $fallback = 1;
} }
emit ( qq(\nqt \$IP rule add from all table ) . DEFAULT_TABLE . qq( prio 32767\n) ) if $family == F_IPV6; emit( qq(\n) ,
qq(if ! \$IP -6 rule ls | egrep -q "32767:[[:space:]]+from all lookup (default|253)"; then) ,
qq( qt \$IP -6 rule add from all table ) . DEFAULT_TABLE . qq( prio 32767\n) ,
qq(fi) ) if $family == F_IPV6;
unless ( $local ) { unless ( $local ) {
emit ''; emit '';