1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Set OpenVPN as default VPN

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-11-04 08:24:55 +01:00
parent 0df8928298
commit cc789dbafc

View file

@ -154,9 +154,10 @@ if [ "$(uci -q get network.tun0.mtu)" = "1200" ] || [ -z "$(uci -q get network.t
EOF
fi
# Set the default VPN
if [ "$(uci -q get openmptcprouter.settings.vpn)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set openmptcprouter.settings.vpn='glorytun_tcp'
set openmptcprouter.settings.vpn='openvpn'
set glorytun.vpn.enable='1'
commit glorytun
commit openmptcprouter