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:
parent
170ef44489
commit
5b32c33c05
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue