diff options
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index b5850a26..c57827ad 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -162,7 +162,8 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke $cipher = $settings['crypto']; // add basic settings - $conf = "dev tun\n"; + $devmode = empty($settings['dev_mode']) ? "tun" : $settings['dev_mode']; + $conf = "dev {$devmode}\n"; if(! empty($settings['tunnel_networkv6'])) { $conf .= "tun-ipv6\n"; } |