mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix variable name so that the prefer old SA knob actually does what one expects it to do.
This commit is contained in:
parent
0ae553ac23
commit
bb655a679b
@ -109,7 +109,7 @@ function vpn_ipsec_configure($ipchg = false) {
|
||||
unlink_if_exists("/var/db/ipsecpinghosts");
|
||||
touch("/var/db/ipsecpinghosts");
|
||||
|
||||
if(isset($config['ipsec']['preferredoldsa'])) {
|
||||
if(isset($config['ipsec']['preferoldsa'])) {
|
||||
mwexec("/sbin/sysctl net.key.preferred_oldsa=0");
|
||||
} else {
|
||||
mwexec("/sbin/sysctl -w net.key.preferred_oldsa=-30");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user