aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-05-06 12:10:13 -0400
committerjim-p <jimp@pfsense.org>2011-05-06 12:10:13 -0400
commitccb5d8219e3ee4bebf3fa576b3154a51699e23cb (patch)
tree8fce6813f7d154d29073362151b07f398cc42893
parent54905f38d1e15c6aa426109cad028fc6229b39d0 (diff)
downloadpfsense-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
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc3
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";
}