diff options
-rw-r--r-- | etc/inc/openvpn.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index c45256a..2495cde 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -443,8 +443,8 @@ function openvpn_reconfigure($mode, $settings) { /* rename the device */ mwexec("/sbin/ifconfig " . escapeshellarg($tunname) . " name " . escapeshellarg($devname)); - /* add the device to the openvpn group */ - mwexec("/sbin/ifconfig " . escapeshellarg($devname) . " group openvpn"); + /* add the device to the openvpn group and make sure it's UP*/ + mwexec("/sbin/ifconfig " . escapeshellarg($devname) . " group openvpn up"); $ifname = convert_real_interface_to_friendly_interface_name($devname); $grouptmp = link_interface_to_group($ifname); |