summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/vpn_openvpn_server.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php
index 02d530d..d098f43 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -202,6 +202,9 @@ if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
+ if ($pconfig['dev_mode'] <> $a_server[$id]['dev_mode'])
+ openvpn_delete('server', $a_server[$id]);// delete(rename) interface so a new TUN or TAP interface can be created.
+
if (isset($id) && $a_server[$id])
$vpnid = $a_server[$id]['vpnid'];
else
OpenPOWER on IntegriCloud