summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2012-10-01 14:45:59 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2012-10-01 14:45:59 +0200
commitda601f8e08b4569d15b59f1e8a113d337f03a9a0 (patch)
tree9162477f6656e93c2a86617c1ec8d95977e22ee2 /usr/local/www
parentd8cdfd3e34fd57bfde7061620007a712321c4d12 (diff)
downloadpfsense-da601f8e08b4569d15b59f1e8a113d337f03a9a0.zip
pfsense-da601f8e08b4569d15b59f1e8a113d337f03a9a0.tar.gz
Allow for changing OpenVPN TUN to TAP device mode without reboot.
Diffstat (limited to 'usr/local/www')
-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 c187878..7971478 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -314,6 +314,9 @@ if ($_POST) {
$server = array();
+ if ($id && $pconfig['dev_mode'] <> $a_server[$id]['dev_mode'])
+ openvpn_delete('server', $a_server[$id]);// delete(rename) old interface so a new TUN or TAP interface can be created.
+
if ($vpnid)
$server['vpnid'] = $vpnid;
else
OpenPOWER on IntegriCloud