diff options
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index b99449f..8670bde 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -638,10 +638,12 @@ EOD; /* Do not print localid in some cases, such as a pure-psk mobile tunnel */ if (($localid_type == "none") || ($ph1ent['authentication_method'] == "pre_shared_key") && isset($ph1ent['mobile'])) $localid_spec = " "; - else if ($localid_type != "address") { - $localid_type = "subnet"; - $localid_spec = $localid_type." ".$localid_data." any"; - } + else { + if ($localid_type != "address") { + $localid_type = "subnet"; + } + $localid_spec = $localid_type." ".$localid_data." any"; + } if (!isset($ph2ent['mobile'])) { $remoteid_type = $ph2ent['remoteid']['type']; |