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:
parent
6eddb0f19b
commit
0a79430c10
1 changed files with 5 additions and 3 deletions
|
@ -1095,10 +1095,12 @@ _config_service() {
|
|||
[ -n "$wanips" ] && _set_wan_ip
|
||||
_set_lan_ip
|
||||
_set_vpn_ip
|
||||
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"
|
||||
uci -q set openmptcprouter.${servername}.lastchange=$(date "+%s")
|
||||
|
|
Loading…
Reference in a new issue