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

Fix related to MPTCP over VPN

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-05-17 12:29:08 +02:00
parent 54baf79957
commit d0c34a4cc8
4 changed files with 28 additions and 11 deletions

View file

@ -185,8 +185,12 @@ _set_wireguard_vps() {
config_load network
config_foreach _get_wg_ipskey interface
local settings
settings='{"peers": ['$ipskey']}'
echo $(_set_json "wireguard" "$settings")
if [ -n "$ipskey" ]; then
settings='{"peers": ['$ipskey']}'
echo $(_set_json "wireguard" "$settings")
else
echo 1
fi
}
get_openvpn_key() {
@ -1808,7 +1812,7 @@ _config_service() {
[ -z "$(_set_openvpn_vps)" ] && error=1
[ -z "$(_set_mlvpn_vps)" ] && error=1
_set_vps_firewall
_set_wireguard_vps
[ -z "$(_set_wireguard_vps)" ] && error=1
fi
_backup_list
redirect_port="0"