Project

General

Profile

« Previous | Next » 

Revision d6109468

Added by Seth Mos over 14 years ago

Delay resolving dynamic DNS tunnels during boot

View differences:

etc/inc/vpn.inc
1677 1677
	/* see if this tunnel has a hostname for the remote-gateway, and if so,
1678 1678
	 * try to resolve it now and add it to the list for filterdns */
1679 1679
	if (!is_ipaddr($phase1['remote-gateway'])) {
1680
		$rgip = resolve_retry($phase1['remote-gateway']);
1681
		add_hostname_to_watch($phase1['remote-gateway']);
1680
		if(! $g['booting']) {
1681
			$rgip = resolve_retry($phase1['remote-gateway']);
1682
			add_hostname_to_watch($phase1['remote-gateway']);
1683
			return false;
1684
		} else {
1685
			add_hostname_to_watch($phase1['remote-gateway']);
1686
		}
1682 1687
		if (!$rgip) {
1683 1688
			log_error("Could not determine VPN endpoint for '{$phase1['descr']}'");
1684 1689
			return false;

Also available in: Unified diff