1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Fix OpenVPN support

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-08-08 12:52:13 +02:00
parent 2d3b37888d
commit dd44455e20

View file

@ -37,7 +37,7 @@ if [ "$(uci -q get openvpn.omr.proto)" != "tcp-client" ]; then
set openvpn.omr.port=65301
set openvpn.omr.cipher=AES-256-CBC
set openvpn.omr.proto=tcp-client
set openvpn.omr.ncp_disable=1
set openvpn.omr.ncp_disable=0
set openvpn.omr.auth_nocache=1
set openvpn.omr.client=1
set openvpn.omr.tls_client=1
@ -154,5 +154,14 @@ if [ "$(uci -q get network.tun0.mtu)" = "1200" ] || [ -z "$(uci -q get network.t
EOF
fi
if [ "$(uci -q get openmptcprouter.settings.vpn)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set openmptcprouter.settings.vpn='glorytun_udp'
set glorytun-udp.vpn.enable='1'
commit glorytun-udp
commit openmptcprouter
EOF
fi
rm -f /tmp/luci-indexcache
exit 0