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

Squashed commit of the following:

commit 54cf729555
Merge: d45321af 218fb8a6
Author: suyuan <175338101@qq.com>
Date:   Tue Sep 13 14:02:03 2022 +0800

    Merge pull request #273 from Ysurac/develop

    sync

commit 218fb8a6e5
Author: Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
Date:   Mon Sep 12 19:55:17 2022 +0200

    Various small fixes

commit 70571e546b
Author: Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
Date:   Tue Aug 30 21:02:19 2022 +0200

    add a sleep between rmmod for sip alg

commit d7c59fffae
Author: Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
Date:   Tue Aug 30 21:01:54 2022 +0200

    Fix release on upgrade, header and status page

commit 58c4f6cb28
Author: Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
Date:   Mon Aug 29 20:08:59 2022 +0200

    Small SIP ALG fixes

commit 0023879724
Author: Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
Date:   Sat Aug 27 07:50:12 2022 +0200

    Fix SIP ALG
This commit is contained in:
suyuan 2022-09-13 14:02:43 +08:00
parent 7db05f73b1
commit d52a27df67
7 changed files with 41 additions and 16 deletions

View file

@ -1461,8 +1461,12 @@ _set_config_from_vps() {
uci -q batch <<-EOF >/dev/null
set openvpn.omr.port=$openvpn_port
set openvpn.omr.secret="/etc/luci-uploads/openvpn.key"
set openvpn.omr.enabled=$openvpn_state
EOF
if [ "$openvpn_state" = "1" ]; then
uci -q set openvpn.omr.enabled=$openvpn_state
else
uci -q del openvpn.omr.enabled
fi
if [ "$(uci -q get openvpn.omr.remote)" != "127.0.0.1" ]; then
uci -q set openvpn.omr.remote="$vpsip"
fi