소스 검색

ring describer: fix getHostInfo (#1014)

Use the correct *HostInfo in the comparison

Fixes #1013
Vincent Rischmann 8 년 전
부모
커밋
93711fb900
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      host_source.go

+ 1 - 1
host_source.go

@@ -632,7 +632,7 @@ func (r *ringDescriber) getHostInfo(ip net.IP, port int) (*HostInfo, error) {
 				return nil, err
 			}
 
-			if host.ConnectAddress().Equal(ip) {
+			if h.ConnectAddress().Equal(ip) {
 				host = h
 				break
 			}