summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 9e27c16..bfbbd05 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -416,7 +416,7 @@ function openvpn_reconfigure($mode, $settings) {
$devname = "ovpnc{$vpnid}";
/* is our device already configured */
- if (does_interface_exist($devname)) {
+ if (!does_interface_exist($devname)) {
/* create the tap device if required */
if (!file_exists("/dev/{$tunname}"))
OpenPOWER on IntegriCloud