mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
IPSec: allow same Local Subnet if used in different Phase1 (#3121)
This commit is contained in:
parent
f4ebba628f
commit
8f96ff81ed
@ -274,7 +274,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (isset($pconfig['mobile'])) {
|
||||
/* User is adding phase 2 for mobile phase1 */
|
||||
foreach ($config['ipsec']['phase2'] as $key => $name) {
|
||||
if (isset($name['mobile']) && $name['uniqid'] != $pconfig['uniqid']) {
|
||||
if (isset($name['mobile']) && $pconfig['ikeid'] == $name['ikeid'] && $name['uniqid'] != $pconfig['uniqid']) {
|
||||
/* check duplicate localids only for mobile clents */
|
||||
$localid_data = ipsec_idinfo_to_cidr($name['localid'], false, $name['mode']);
|
||||
$entered = array();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user