diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 9e356e3..d64a3c9 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -4354,15 +4354,7 @@ function upgrade_139_to_140() { function upgrade_140_to_141() { global $config; - // retain OpenVPN's net30 default topology for upgraded configs so they still work - if (is_array($config['openvpn']) && is_array($config['openvpn']['openvpn-server'])) { - foreach ($config['openvpn']['openvpn-server'] as $idx => $ovpnserver) { - if (!isset($ovpnserver['topology'])) { - $config['openvpn']['openvpn-server'][$idx]['topology'] = "net30"; - } - } - } - + // retain OpenVPN's net30 default topology for upgraded client configs so they still work if (is_array($config['openvpn']) && is_array($config['openvpn']['openvpn-client'])) { foreach ($config['openvpn']['openvpn-client'] as $idx => $ovpnclient) { if (!isset($ovpnclient['topology'])) { |