This commit is contained in:
crusader 2018-04-28 22:42:26 +09:00
parent 042e4ac37b
commit 75e0ebb8fd

View File

@ -32,7 +32,7 @@ func (s *SocketHeahthCrawler) getConnection(config *ocmsc.SensorConfig) (net.Con
addr := fmt.Sprintf("%s:%s", ip, port) addr := fmt.Sprintf("%s:%s", ip, port)
conn, err := net.Dial(portType, addr) conn, err := net.Dial(portType.String(), addr)
if err != nil { if err != nil {
return nil, err return nil, err
} }