mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
allow /30 for p2p
This commit is contained in:
parent
9335c87a6f
commit
0ee3ecde53
@ -201,8 +201,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
if ($result = openvpn_validate_cidr($pconfig['tunnel_network'], gettext('IPv4 Tunnel Network'), false, 'ipv4')) {
|
||||
$input_errors[] = $result;
|
||||
} elseif (!empty($pconfig['tunnel_network'])) {
|
||||
// Check IPv4 tunnel_network pool size
|
||||
} elseif (!empty($pconfig['tunnel_network']) && (strpos($pconfig['mode'], "p2p_") === false)) {
|
||||
// Check IPv4 tunnel_network pool size for Remote Access modes
|
||||
list($ipv4tunnel_base, $ipv4tunnel_prefix) = explode('/',trim($pconfig['tunnel_network']));
|
||||
if ($pconfig['dev_mode'] == "tun") {
|
||||
if ($ipv4tunnel_prefix > 28 && empty($pconfig['topology_subnet'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user