added wg-quick down to start.sh
This commit is contained in:
parent
f640832a86
commit
69898d166f
@ -264,6 +264,8 @@ if [[ $VPN_ENABLED == "yes" ]]; then
|
||||
else
|
||||
echo "[INFO] Starting WireGuard..." | ts '%Y-%m-%d %H:%M:%.S'
|
||||
cd /config/wireguard
|
||||
wg-quick down $VPN_CONFIG
|
||||
sleep 1 #Just sleep 1 second to make sure it has time to go down
|
||||
wg-quick up $VPN_CONFIG
|
||||
#exec /bin/bash /etc/openvpn/openvpn.init start &
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user