aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-03 21:58:43 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-03 21:58:43 +0000
commit0e11a661afbff3fb8f61028032ca48b6c7800604 (patch)
tree8976349bd51d401ab5b80e60c2254a5fb11e908d /config/openvpn-client-export
parentf9032daac2f1cd7253b873ce88cadf1a37bfe8b8 (diff)
downloadpfsense-packages-0e11a661afbff3fb8f61028032ca48b6c7800604.tar.gz
pfsense-packages-0e11a661afbff3fb8f61028032ca48b6c7800604.tar.bz2
pfsense-packages-0e11a661afbff3fb8f61028032ca48b6c7800604.zip
Use lower case interface name internally.
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index 390e448e..ec9faaa8 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -110,7 +110,7 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke
if ($useaddr) {
$interface = $settings['interface'];
if (!$interface)
- $interface = 'WAN';
+ $interface = 'wan';
$iface = convert_friendly_interface_to_real_interface_name($interface);
$lines = explode(' ', trim(shell_exec("ifconfig {$iface} | grep inet | grep -v inet6")));
$server_host = $lines[1];