实现节点自动切换到备用IP

This commit is contained in:
GoEdgeLab
2021-09-13 10:51:05 +08:00
parent a0fbd3d831
commit 0077f045e9
14 changed files with 112 additions and 39 deletions

View File

@@ -311,7 +311,7 @@ func (this *DNSTaskExecutor) doCluster(taskId int64, clusterId int64) error {
continue
}
for _, ipAddress := range ipAddresses {
ip := ipAddress.Ip
ip := ipAddress.DNSIP()
if len(ip) == 0 || ipAddress.CanAccess == 0 || ipAddress.IsUp == 0 || ipAddress.IsOn == 0 {
continue
}