mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix OpenVPN multi process
This commit is contained in:
parent
5a3e8ccff8
commit
77b7adee49
1 changed files with 2 additions and 2 deletions
|
@ -182,9 +182,9 @@ if [ "$NBCPU" -gt 1 ] && [ -z "$(uci -q get openvpn.omr2)" ]; then
|
||||||
set openvpn.omr$c.disable_dco=1
|
set openvpn.omr$c.disable_dco=1
|
||||||
set openvpn.omr$c.ping_restart=60
|
set openvpn.omr$c.ping_restart=60
|
||||||
set openvpn.omr$c.tun_mtu=1420
|
set openvpn.omr$c.tun_mtu=1420
|
||||||
del_list firewall.zone_vpn.device=tun$((c-1))
|
|
||||||
add_list firewall.zone_vpn.device=tun$((c-1))
|
|
||||||
EOF
|
EOF
|
||||||
|
[ -z "$(uci -q get firewall.zone_vpn.device | grep tun$((c-1)))" ] && add_list firewall.zone_vpn.device=tun$((c-1))
|
||||||
|
|
||||||
done
|
done
|
||||||
uci -q commit openvpn
|
uci -q commit openvpn
|
||||||
uci -q commit firewall
|
uci -q commit firewall
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue