summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php
index 2e2febd..71c90be 100755
--- a/usr/local/www/vpn_ipsec_edit.php
+++ b/usr/local/www/vpn_ipsec_edit.php
@@ -160,7 +160,8 @@ if ($_POST) {
$input_errors[] = "A valid remote network address must be specified.";
}
if (($_POST['remotegw'] && !is_ipaddr($_POST['remotegw']))) {
- $input_errors[] = "A valid remote gateway address must be specified.";
+ if($_POST['p1myidentt'] <> "dyn_dns")
+ $input_errors[] = "A valid remote gateway address must be specified.";
}
if ((($_POST['p1myidentt'] == "address") && !is_ipaddr($_POST['p1myident']))) {
$input_errors[] = "A valid IP address for 'My identifier' must be specified.";
OpenPOWER on IntegriCloud