summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/etc/inc/openvpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc
index 257152c..0a04da4 100644
--- a/src/etc/inc/openvpn.inc
+++ b/src/etc/inc/openvpn.inc
@@ -1063,7 +1063,8 @@ function openvpn_reconfigure($mode, $settings) {
$conf .= "float\n";
}
- if (in_array($settings['mode'], $openvpn_tls_server_modes)) {
+ // If the server is not a TLS server or it has a tunnel network CIDR less than a /30, skip this.
+ if (in_array($settings['mode'], $openvpn_tls_server_modes) && (!empty($ip) && !empty($mask) && ($cidr < 30))) {
if (empty($settings['topology'])) {
$settings['topology'] = "subnet";
}
OpenPOWER on IntegriCloud