diff --git a/crawler/health/SocketHeahthCrawler.go b/crawler/health/SocketHeahthCrawler.go index 1ee959c..5e3e14b 100644 --- a/crawler/health/SocketHeahthCrawler.go +++ b/crawler/health/SocketHeahthCrawler.go @@ -32,7 +32,7 @@ func (s *SocketHeahthCrawler) getConnection(config *ocmsc.SensorConfig) (net.Con addr := fmt.Sprintf("%s:%s", ip, port) - conn, err := net.Dial(portType, addr) + conn, err := net.Dial(portType.String(), addr) if err != nil { return nil, err }