瀏覽代碼

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
 			}