chore: sync to the latest repository name

This commit is contained in:
Leo
2023-06-09 21:27:01 +08:00
committed by tsosunchia
parent c71a26d018
commit 87fa850d2d
5 changed files with 4 additions and 14 deletions

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/xgadget-lab/nexttrace
module github.com/sjlleo/nexttrace-core
go 1.20

View File

@@ -10,7 +10,7 @@ import (
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/xgadget-lab/nexttrace/util"
"github.com/sjlleo/nexttrace-core/util"
"golang.org/x/net/context"
"golang.org/x/net/icmp"
"golang.org/x/net/ipv4"

View File

@@ -10,7 +10,7 @@ import (
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/xgadget-lab/nexttrace/util"
"github.com/sjlleo/nexttrace-core/util"
"golang.org/x/net/context"
"golang.org/x/net/icmp"
"golang.org/x/net/ipv6"

View File

@@ -42,16 +42,6 @@ type Tracer interface {
func Traceroute(method Method, config Config) (*Result, error) {
var tracer Tracer
if config.MaxHops == 0 {
config.MaxHops = 30
}
if config.NumMeasurements == 0 {
config.NumMeasurements = 3
}
if config.ParallelRequests == 0 {
config.ParallelRequests = config.NumMeasurements * 5
}
switch method {
case ICMPTrace:
if config.DestIP.To4() != nil {

View File

@@ -8,7 +8,7 @@ import (
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/xgadget-lab/nexttrace/util"
"github.com/sjlleo/nexttrace-core/util"
"golang.org/x/net/context"
"golang.org/x/net/icmp"
"golang.org/x/net/ipv4"