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

Fix remove previous client2client routes in all cases

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-02-24 19:25:47 +01:00
parent 9134e215cd
commit 06d121f224

View file

@ -1125,11 +1125,9 @@ _config_service() {
[ -n "$wanips" ] && _set_wan_ip [ -n "$wanips" ] && _set_wan_ip
_set_lan_ip _set_lan_ip
_set_vpn_ip _set_vpn_ip
if [ "$(uci -q get openmptcprouter.settings.vpn)" != "openvpn" ]; then _delete_client2client
_delete_client2client if [ "$(uci -q get openmptcprouter.settings.vpn)" != "openvpn" ] && [ "$(echo "$vps_config" | jsonfilter -q -e '@.client2client.enabled')" == "true" ]; then
if [ "$(echo "$vps_config" | jsonfilter -q -e '@.client2client.enabled')" == "true" ]; then _set_client2client
_set_client2client
fi
fi fi
[ "$error" = 0 ] && { [ "$error" = 0 ] && {
#logger -t "OMR-VPS" "No errors" #logger -t "OMR-VPS" "No errors"