From d174ac410751f256be87fbb7d66ea984814dbd8f Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sun, 16 May 2021 20:43:34 +0200 Subject: [PATCH] BUGFIX the threshold maxhops is too small --- .idea/modules.xml | 1 + traceroute.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.idea/modules.xml b/.idea/modules.xml index f0ad2f7..8d419df 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,6 +2,7 @@ <project version="4"> <component name="ProjectModuleManager"> <modules> + <module fileurl="file://$PROJECT_DIR$/../../../../utilities/network/connection-checker/connection-checker.iml" filepath="$PROJECT_DIR$/../../../../utilities/network/connection-checker/connection-checker.iml" /> <module fileurl="file://$PROJECT_DIR$/traceroute.iml" filepath="$PROJECT_DIR$/traceroute.iml" /> </modules> </component> diff --git a/traceroute.go b/traceroute.go index 7d0fdbd..40ee5f6 100644 --- a/traceroute.go +++ b/traceroute.go @@ -217,7 +217,7 @@ func (s *Session) doTrace(cb func(i int) Result) (*Results, error) { results := Results{} - for i := 1; i < s.MaxHops; i++ { + for i := 1; i <= s.MaxHops; i++ { r := cb(i) results.Hops = append(results.Hops, r) if s.CallBack != nil { -- GitLab