diff --git a/trace/udp.go b/trace/udp.go index 3f68401..81e3716 100644 --- a/trace/udp.go +++ b/trace/udp.go @@ -54,7 +54,7 @@ func (t *UDPTracer) Execute() (*Result, error) { go t.listenICMP() t.sem = semaphore.NewWeighted(int64(t.ParallelRequests)) - for ttl := 1; ttl <= t.MaxHops; ttl++ { + for ttl := t.BeginHop; ttl <= t.MaxHops; ttl++ { // 如果到达最终跳,则退出 if t.final != -1 && ttl > t.final { break