Skip to content

Commit

Permalink
fix bugs:--source and --dev doesn't work on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tsosunchia committed Aug 16, 2023
1 parent cb7bc74 commit f3f99ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trace/icmp_ipv4.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"sync"
"time"

"github.com/xgadget-lab/nexttrace/trace/internal"
"golang.org/x/net/context"
"golang.org/x/net/icmp"
"golang.org/x/net/ipv4"
Expand Down Expand Up @@ -65,7 +64,7 @@ func (t *ICMPTracer) Execute() (*Result, error) {

var err error

t.icmpListen, err = internal.ListenICMP("ip4:1", t.SrcAddr)
t.icmpListen, err = net.ListenPacket("ip4:1", t.SrcAddr)
if err != nil {
return &t.res, err
}
Expand Down

0 comments on commit f3f99ac

Please sign in to comment.