mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
fix a bug caused table crash when using IPv6
This commit is contained in:
@@ -110,7 +110,9 @@ func (t *ICMPTracerv6) Execute() (*Result, error) {
|
||||
t.wg.Wait()
|
||||
t.res.reduce(t.final)
|
||||
if t.final != -1 {
|
||||
t.RealtimePrinter(&t.res, t.final-1)
|
||||
if t.RealtimePrinter != nil {
|
||||
t.RealtimePrinter(&t.res, t.final-1)
|
||||
}
|
||||
} else {
|
||||
for i := 0; i < t.NumMeasurements; i++ {
|
||||
t.res.add(Hop{
|
||||
|
||||
Reference in New Issue
Block a user