Skip to content

Commit

Permalink
openvpn: flip back to multiple
Browse files Browse the repository at this point in the history
It looked like the original request was misunderstood and this
changed the wrong option.

PR: https://forum.opnsense.org/index.php?topic=10950.0
  • Loading branch information
fichtner committed Jan 12, 2019
1 parent 4652730 commit 1c8731d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/www/vpn_openvpn_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@
if ($result = openvpn_validate_cidr($pconfig['tunnel_networkv6'], gettext('IPv6 Tunnel Network'), false, 'ipv6')) {
$input_errors[] = $result;
}
if ($result = openvpn_validate_cidr($pconfig['remote_network'], gettext('IPv4 Remote Network'), false, 'ipv4')) {
if ($result = openvpn_validate_cidr($pconfig['remote_network'], gettext('IPv4 Remote Network'), true, 'ipv4')) {
$input_errors[] = $result;
}
if ($result = openvpn_validate_cidr($pconfig['remote_networkv6'], gettext('IPv6 Remote Network'), false, 'ipv6')) {
if ($result = openvpn_validate_cidr($pconfig['remote_networkv6'], gettext('IPv6 Remote Network'), true, 'ipv6')) {
$input_errors[] = $result;
}
if (!empty($pconfig['use_shaper']) && (!is_numeric($pconfig['use_shaper']) || ($pconfig['use_shaper'] <= 0))) {
Expand Down

0 comments on commit 1c8731d

Please sign in to comment.