diff options
author | jim-p <jimp@pfsense.org> | 2011-05-11 15:10:42 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-11 15:10:42 -0400 |
commit | 393545d377e71d06dcce9197cb99cccebfcc387d (patch) | |
tree | 4507122f4e7114f603cebe1bc8893cce1197c91e /config/openvpn-client-export | |
parent | c571d1c09d9143fd21ec80504b489ad9baa65bab (diff) | |
download | pfsense-packages-393545d377e71d06dcce9197cb99cccebfcc387d.tar.gz pfsense-packages-393545d377e71d06dcce9197cb99cccebfcc387d.tar.bz2 pfsense-packages-393545d377e71d06dcce9197cb99cccebfcc387d.zip |
If the openvpn instance is "any", export the config to point to the wan by default (otherwise it was empty, an invalid config)
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.inc | 2 |
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 c57827ad..04028139 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -147,7 +147,7 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke if (!empty($settings['ipaddr']) && is_ipaddr($settings['ipaddr'])) { $server_host = $settings['ipaddr']; } else { - if (!$interface) + if (!$interface || ($interface == "any")) $interface = "wan"; $server_host = get_interface_ip($interface); } |