summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/etc/inc/openvpn.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc
index 9beefdc..8ca00ac 100644
--- a/src/etc/inc/openvpn.inc
+++ b/src/etc/inc/openvpn.inc
@@ -1013,10 +1013,12 @@ function openvpn_reconfigure($mode, $settings) {
$conf .= "float\n";
}
- if (empty($settings['topology'])) {
- $settings['topology'] = "subnet";
+ if (in_array($settings['mode'], $openvpn_tls_server_modes)) {
+ if (empty($settings['topology'])) {
+ $settings['topology'] = "subnet";
+ }
+ $conf .= "topology {$settings['topology']}\n";
}
- $conf .= "topology {$settings['topology']}\n";
// New client features
if ($mode == "client") {
OpenPOWER on IntegriCloud