From c8bb7f1527a99c69784ab6c01d9050adcde6a8a0 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sat, 22 Sep 2012 23:23:58 +0200 Subject: Allow for changing OpenVPN TUN to TAP device mode without reboot. --- usr/local/www/vpn_openvpn_server.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www/vpn_openvpn_server.php') 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 -- cgit v1.1