1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Fix when VPN is OpenVPN

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-01-30 10:11:26 +01:00
parent 6eddb0f19b
commit 0a79430c10

View file

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