Project

General

Profile

« Previous | Next » 

Revision 03131eb9

Added by Renato Botelho almost 12 years ago

Remove SPD when disable phase2, it fixes #2719

View differences:

etc/inc/vpn.inc
1905 1905
		}
1906 1906
	}
1907 1907
	/* add new SPD policies to replace them */
1908
	if (!isset($phase1['disabled'])) {
1908
	if (!isset($phase1['disabled']) && !isset($phase2['disabled'])) {
1909 1909
		$spdconf .= "spdadd {$family} {$local_subnet} " .
1910 1910
			"{$remote_subnet} any -P out ipsec " .
1911 1911
			"{$phase2['protocol']}/tunnel/{$ep}-" .

Also available in: Unified diff