diff --git a/pkg/prober/prober.go b/pkg/prober/prober.go index 8d00b37..e30ad98 100644 --- a/pkg/prober/prober.go +++ b/pkg/prober/prober.go @@ -32,8 +32,7 @@ type Prober struct { // Config is the configuration of a prober type Config struct { - BasePort uint16 - //LocalAddr net.IP + BasePort uint16 ConfiguredSrcAddr net.IP SrcAddrs []net.IP Hops []Hop @@ -93,7 +92,7 @@ func (p *Prober) Start() error { // Stop stops the prober func (p *Prober) Stop() { - p.stop <- struct{}{} + close(p.stop) } func (p *Prober) cleaner() {