mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
fix: panic on IPv6
This commit is contained in:
@@ -120,7 +120,9 @@ func (t *ICMPTracerv6) Execute() (*Result, error) {
|
||||
Error: ErrHopLimitTimeout,
|
||||
})
|
||||
}
|
||||
t.RealtimePrinter(&t.res, t.MaxHops-1)
|
||||
if t.RealtimePrinter != nil {
|
||||
t.RealtimePrinter(&t.res, t.MaxHops-1)
|
||||
}
|
||||
}
|
||||
|
||||
return &t.res, nil
|
||||
|
||||
Reference in New Issue
Block a user