Fixes #3995. Do not set rightsourceip on site-to-site VPNs but only on mobile users ones otherwise nothing works.

This commit is contained in:
Ermal 2014-11-07 19:28:56 +01:00
parent 20a9590486
commit 80be089f05
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ EOD;
$ikelifeline = "ikelifetime = {$ph1ent['lifetime']}s";
$rightsourceip = NULL;
if (!empty($a_client['pool_address']))
if (isset($ph1ent['mobile']) && !empty($a_client['pool_address']))
$rightsourceip = "\trightsourceip = {$a_client['pool_address']}/{$a_client['pool_netbits']}\n";
$authentication = "";