Project

General

Profile

« Previous | Next » 

Revision 243f00e7

Added by Scott Ullrich over 17 years ago

Adding dnswatch support.

Obtained-from: m0n0wall

View differences:

usr/local/www/vpn_ipsec_edit.php
183 183
			$t++;
184 184
		}
185 185
	}
186
	if (($_POST['remotegw'] && !is_ipaddr($_POST['remotegw']))) {
187
		if(is_domain($_POST['remotegw']) == false)
188
			$input_errors[] = "A valid remote gateway address must be specified.";
189
	}
186
	if (($_POST['remotegw'] && !is_ipaddr($_POST['remotegw']) && !is_domain($_POST['remotegw']))) 
187
		$input_errors[] = "A valid remote gateway address or host name must be specified.";
190 188
	if (($_POST['remotegw'] && is_ipaddr($_POST['remotegw']) && !isset($_POST['disabled']) )) {
191 189
		$t = 0;
192 190
		foreach($a_ipsec as $tunnel) {
......
423 421
                  <td width="78%" class="vtable">
424 422
                    <?=$mandfldhtml;?><input name="remotegw" type="text" class="formfld unknown" id="remotegw" size="20" value="<?=$pconfig['remotegw'];?>">
425 423
                    <br>
426
                    Enter the public IP address of the remote gateway</td>
424
                    Enter the public IP address or host name of the remote gateway</td>
427 425
                </tr>
428 426
                <tr>
429 427
                  <td width="22%" valign="top" class="vncell">Description</td>

Also available in: Unified diff