Skip to content
Snippets Groups Projects
Commit c276f482 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

Merge branch 'GITLAB/-/faa000b3-c891-4edc-b5aa-cd6f609bfe5e' into 'master'

BUGFIX the threshold maxhops is too small

See merge request oss/libraries/go/network/traceroute!2
parents b9fafad6 d174ac41
Branches master
Tags v1.0.0
No related merge requests found
......@@ -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>
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment