mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-22 18:51:24 +02:00
Correctly handle down persistent interface during 'disable'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
35bd1db7fb
commit
156313edd2
@ -809,6 +809,10 @@ sub add_a_provider( $$ ) {
|
|||||||
|
|
||||||
push_indent;
|
push_indent;
|
||||||
|
|
||||||
|
emit( "if interface_is_up $physical; then" );
|
||||||
|
|
||||||
|
push_indent;
|
||||||
|
|
||||||
if ( $gatewaycase eq 'omitted' ) {
|
if ( $gatewaycase eq 'omitted' ) {
|
||||||
if ( $tproxy ) {
|
if ( $tproxy ) {
|
||||||
emit 'run_ip route add local ' . ALLIP . " dev $physical table $id";
|
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) );
|
qq(rm -f \${VARDIR}/${physical}_enabled) );
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user