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:
parent
9134e215cd
commit
06d121f224
1 changed files with 3 additions and 5 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue