forked from extern/shorewall_code
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:
parent
2da69bd0b7
commit
bd9e9345ab
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user