Skip to content

Commit

Permalink
Set OpenVPN as default VPN
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Nov 4, 2023
1 parent 0df8928 commit cc789db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openmptcprouter/files/etc/uci-defaults/2020-omr-vpn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc789db

Please sign in to comment.