summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-17 00:39:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-17 00:39:44 +0000
commit243f00e73aabfd90334c62c8ccfce871c0d9ea42 (patch)
treefa2369dbe52ee638e96b3d8de6564063574b852c /usr
parent979cd6db9c6a81493498660f7205faabf25ed6ec (diff)
downloadpfsense-243f00e73aabfd90334c62c8ccfce871c0d9ea42.zip
pfsense-243f00e73aabfd90334c62c8ccfce871c0d9ea42.tar.gz
Adding dnswatch support.
Obtained-from: m0n0wall
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php
index 7e4331d..f8040c1 100755
--- a/usr/local/www/vpn_ipsec_edit.php
+++ b/usr/local/www/vpn_ipsec_edit.php
@@ -183,10 +183,8 @@ if ($_POST) {
$t++;
}
}
- if (($_POST['remotegw'] && !is_ipaddr($_POST['remotegw']))) {
- if(is_domain($_POST['remotegw']) == false)
- $input_errors[] = "A valid remote gateway address must be specified.";
- }
+ if (($_POST['remotegw'] && !is_ipaddr($_POST['remotegw']) && !is_domain($_POST['remotegw'])))
+ $input_errors[] = "A valid remote gateway address or host name must be specified.";
if (($_POST['remotegw'] && is_ipaddr($_POST['remotegw']) && !isset($_POST['disabled']) )) {
$t = 0;
foreach($a_ipsec as $tunnel) {
@@ -423,7 +421,7 @@ function methodsel_change() {
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="remotegw" type="text" class="formfld unknown" id="remotegw" size="20" value="<?=$pconfig['remotegw'];?>">
<br>
- Enter the public IP address of the remote gateway</td>
+ Enter the public IP address or host name of the remote gateway</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Description</td>
OpenPOWER on IntegriCloud