Project

General

Profile

« Previous | Next » 

Revision f5780da7

Added by Seth Mos almost 17 years ago

Check in fix that hopefully fixes IPSEC on pppoe or pptp

View differences:

etc/inc/vpn.inc
864 864
		if(preg_match("/^carp/i", $tunnel['interface'])) {
865 865
			$iface = $tunnel['interface'];
866 866
		} else {
867
			$iface = $config['interfaces'][$tunnel['interface']]['if'];
867
			if($config['interfaces'][$tunnel['interface']]['ipaddr'] == "pppoe" OR 
868
				$config['interfaces'][$tunnel['interface']]['ipaddr'] == "pptp") {
869
				$iface = "ng0";
870
			} else {
871
				$iface = $config['interfaces'][$tunnel['interface']]['if'];
872
			}
868 873
		}
869 874
		$oc = $config['interfaces'][$tunnel['interface']];
870 875
		/* carp ips, etc */

Also available in: Unified diff