diff options
-rw-r--r-- | etc/inc/vpn.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 80d084d..c6d44c0 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -575,6 +575,8 @@ EOD; mwexec("/sbin/setkey -F"); /* load SPD */ mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf"); + /* We are already online, reload */ + mwexec("/usr/bin/killall -HUP racoon"); } else { /* start racoon */ mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf"); @@ -583,6 +585,8 @@ EOD; mwexec("/sbin/setkey -F"); /* load SPD */ mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf"); + /* We are already online, reload */ + mwexec("/usr/bin/killall -HUP racoon"); } } } |