Correctly handle down persistent interface during 'disable'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-09-27 11:47:37 -07:00
parent 35bd1db7fb
commit 156313edd2
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -809,6 +809,10 @@ sub add_a_provider( $$ ) {
push_indent;
emit( "if interface_is_up $physical; then" );
push_indent;
if ( $gatewaycase eq 'omitted' ) {
if ( $tproxy ) {
emit 'run_ip route add local ' . ALLIP . " dev $physical table $id";
@ -862,7 +866,9 @@ sub add_a_provider( $$ ) {
}
}
emit( qq(\n),
pop_indent;
emit( qq(fi\n),
qq(rm -f \${VARDIR}/${physical}_enabled) );