Fix non-bug in openvpn handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6244 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-05 00:18:45 +00:00
parent 2da69bd0b7
commit bd9e9345ab

View File

@ -130,7 +130,7 @@ sub setup_tunnels() {
if ( defined $p && $p ne '' ) {
$port = $p;
$protocol = $proto;
} elsif ( $proto ) {
} elsif ( defined $proto && $proto ne '' ) {
if ( "\L$proto" =~ /udp|tcp/ ) {
$protocol = $proto;
} else {
@ -153,7 +153,7 @@ sub setup_tunnels() {
if ( defined $p && $p ne '' ) {
$port = $p;
$protocol = $proto;
} elsif ( $proto ) {
} elsif ( defined $proto && $proto ne '' ) {
if ( "\L$proto" =~ /udp|tcp/ ) {
$protocol = $proto;
} else {
@ -176,7 +176,7 @@ sub setup_tunnels() {
if ( defined $p && $p ne '' ) {
$port = $p;
$protocol = $proto;
} elsif ( $proto ) {
} elsif ( defined $proto && $proto ne '' ) {
if ( "\L$proto" =~ /udp|tcp/ ) {
$protocol = $proto;
} else {