From 08585c75ae483720edfc092511e07961462076bd Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 28 Aug 2010 14:46:29 -0700 Subject: [PATCH] Fix optional 'upnpclient' interfaces - take 2 --- Shorewall/Perl/Shorewall/Rules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 128bf5a92..da028355f 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -680,7 +680,7 @@ sub add_common_rules() { if ( interface_is_optional $interface ) { add_commands( $chainref, - qq(if [ -n "\$${base}_IS_USABLE" -a -n "$variable" ]; then) , + qq(if [ -n "SW_\$${base}_IS_USABLE" -a -n "$variable" ]; then) , ' echo "-A ' . match_source_dev( $interface ) . qq(-s $variable -p udp -j ACCEPT" >&3) , qq(fi) ); } else {