summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_server.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-07 10:45:45 -0500
committerjim-p <jimp@pfsense.org>2013-01-07 10:47:01 -0500
commit489f484cbda027e0bb677218ff2167ecf125f70e (patch)
treef4f8ad6aa587824ee2d848d753853598d6d4059d /usr/local/www/vpn_openvpn_server.php
parentb94dd7d3427f5ffbd11cf2f270ea3964ac9b7da9 (diff)
downloadpfsense-489f484cbda027e0bb677218ff2167ecf125f70e.zip
pfsense-489f484cbda027e0bb677218ff2167ecf125f70e.tar.gz
Unbreak selecting "any" for OpenVPN client/server interface.
Diffstat (limited to 'usr/local/www/vpn_openvpn_server.php')
-rw-r--r--usr/local/www/vpn_openvpn_server.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php
index dafcabc..8c540fe 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -212,9 +212,9 @@ if ($_POST) {
$input_errors[] = gettext("Protocol and IP address families do not match. You cannot select an IPv6 protocol and an IPv4 IP address.");
} elseif (is_ipaddrv6($iv_ip) && (stristr($pconfig['protocol'], "6") === false)) {
$input_errors[] = gettext("Protocol and IP address families do not match. You cannot select an IPv4 protocol and an IPv6 IP address.");
- } elseif ((stristr($pconfig['protocol'], "6") === false) && !get_interface_ip($iv_iface)) {
+ } elseif ((stristr($pconfig['protocol'], "6") === false) && !get_interface_ip($iv_iface) && ($pconfig['interface'] != "any")) {
$input_errors[] = gettext("An IPv4 protocol was selected, but the selected interface has no IPv4 address.");
- } elseif ((stristr($pconfig['protocol'], "6") !== false) && !get_interface_ipv6($iv_iface)) {
+ } elseif ((stristr($pconfig['protocol'], "6") !== false) && !get_interface_ipv6($iv_iface) && ($pconfig['interface'] != "any")) {
$input_errors[] = gettext("An IPv6 protocol was selected, but the selected interface has no IPv6 address.");
}
OpenPOWER on IntegriCloud