소스 검색

set peer endpoint if host endpoint is nil

abhishek9686 10 달 전
부모
커밋
92c47b9156
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      logic/peers.go

+ 1 - 1
logic/peers.go

@@ -231,7 +231,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
 					peerEndpoint = peerHost.EndpointIP
 				}
 			}
-			if host.EndpointIP == nil && peerEndpoint == nil {
+			if host.EndpointIPv6 == nil && peerEndpoint == nil {
 				if peerHost.EndpointIPv6 != nil {
 					peerEndpoint = peerHost.EndpointIPv6
 				}