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

Fix when VPS contact is a DNS

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-11-06 16:21:28 +01:00
parent 170ef44489
commit 5b32c33c05
2 changed files with 14 additions and 1 deletions

View file

@ -66,7 +66,7 @@ _check_master() {
set_ip() {
local ip=$1
ipresolve="$(resolveip -4 $ip | head -n 1)"
[ -z "$ipresolve" ] && ip="$ipresolve"
[ -n "$ipresolve" ] && ip="$ipresolve"
#_ping_server $ip
_check_server $ip $port
if [ "$server_ping" = true ]; then