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

Check that server is not disabled on VPS script before using it

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-10-23 14:40:44 +02:00
parent 987c7ff911
commit b49db635ee

View file

@ -2145,6 +2145,7 @@ _get_token() {
_config_service() {
servername=$1
[ "$(uci -q get openmptcprouter.${servername}.disabled)" = "1" ] && return
vps_config=""
tokenserver=$(_get_token $servername)
server="$(echo $tokenserver | cut -f1 -d:)"