From e9e89a7152852393d3530df2f15be8af57170635 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 10 Aug 2005 15:31:16 +0000 Subject: Allow dynamic dns hostnames Ticket #324 --- usr/local/www/vpn_ipsec_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr') 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."; -- cgit v1.1