diff options
author | jim-p <jimp@pfsense.org> | 2011-05-06 12:10:13 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-06 12:10:13 -0400 |
commit | ccb5d8219e3ee4bebf3fa576b3154a51699e23cb (patch) | |
tree | 8fce6813f7d154d29073362151b07f398cc42893 /config/openvpn-client-export/openvpn-client-export.inc | |
parent | 54905f38d1e15c6aa426109cad028fc6229b39d0 (diff) | |
download | pfsense-packages-ccb5d8219e3ee4bebf3fa576b3154a51699e23cb.tar.gz pfsense-packages-ccb5d8219e3ee4bebf3fa576b3154a51699e23cb.tar.bz2 pfsense-packages-ccb5d8219e3ee4bebf3fa576b3154a51699e23cb.zip |
Account for the server's dev type when exporting, and default to tun if it's not set. http://forum.pfsense.org/index.php/topic,36467.0.html
Diffstat (limited to 'config/openvpn-client-export/openvpn-client-export.inc')
-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"; } |