aboutsummaryrefslogtreecommitdiff
path: root/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service.go')
-rw-r--r--service.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/service.go b/service.go
index b1bf11c..e8c1f8d 100644
--- a/service.go
+++ b/service.go
@@ -66,7 +66,7 @@ func (svc *Service) Scan() (report ScanReport) {
case serviceKindTCP, serviceKindUDP:
var conn net.Conn
- conn, err = svc.dialer.Dial(`udp`, svc.opts.scanURL.Host)
+ conn, err = svc.dialer.Dial(svc.opts.scanURL.Scheme, svc.opts.scanURL.Host)
if err != nil {
report.Error = err.Error()
return report
@@ -92,7 +92,6 @@ func (svc *Service) Start(reportq chan<- ScanReport) {
log.Printf("Service: %s not ok", svc.opts.Name)
return
}
- log.Printf(`Scan %s started`, svc.opts.Name)
reportq <- svc.Scan()
}
}