Revision f3ee8205
Added by Matthew Smith over 9 years ago
etc/inc/vpn.inc | ||
---|---|---|
473 | 473 |
|
474 | 474 |
if (is_array($a_client) && isset($a_client['enable'])) { |
475 | 475 |
$strongswan .= "\t\tattr {\n"; |
476 |
if ($a_client['pool_address'] && $a_client['pool_netbits']) { |
|
477 |
$strongswan .= "\t\t\tsubnet = {$a_client['pool_address']}/{$a_client['pool_netbits']}\n"; |
|
478 |
} |
|
479 | 476 |
|
480 | 477 |
$cfgservers = array(); |
481 | 478 |
if (!empty($a_client['dns_server1'])) { |
... | ... | |
527 | 524 |
} |
528 | 525 |
|
529 | 526 |
if (!empty($net_list)) { |
527 |
$strongswan .= "\t\t\tsubnet = {$net_list}\n"; |
|
530 | 528 |
$strongswan .= "\t\t\tsplit-include = {$net_list}\n"; |
531 | 529 |
unset($net_list); |
532 | 530 |
} |
Also available in: Unified diff
Make setting charon.plugins.attr.subnet conditional on net_list being set. Set
it's value to list of subnets configured as P2's for mobile IPsec. Fixes #5327.