주소 잘못 보냄

This commit is contained in:
2024-02-15 17:32:24 +09:00
parent eb86c0a073
commit 62494fb052

View File

@ -104,7 +104,7 @@ func (sp *hostPool) regist(desc *protos.OperationQueryRequest) (string, chan *op
address := net.JoinHostPort(prvip, "9100") address := net.JoinHostPort(prvip, "9100")
if conn, _ := net.DialTimeout("tcp", address, 3*time.Second); conn != nil { if conn, _ := net.DialTimeout("tcp", address, 3*time.Second); conn != nil {
conn.Close() conn.Close()
sp.exportChan <- "+" + prvip sp.exportChan <- "+" + address
return return
} }
} }
@ -113,7 +113,7 @@ func (sp *hostPool) regist(desc *protos.OperationQueryRequest) (string, chan *op
address := net.JoinHostPort(pubip, "9100") address := net.JoinHostPort(pubip, "9100")
if conn, _ := net.DialTimeout("tcp", address, 3*time.Second); conn != nil { if conn, _ := net.DialTimeout("tcp", address, 3*time.Second); conn != nil {
conn.Close() conn.Close()
sp.exportChan <- "+" + pubip sp.exportChan <- "+" + address
return return
} }
} }