Skip to content

Commit

Permalink
[network path] Avoid reporting unknown_hop_X for successful hops (#30823
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 8de1e6b)
  • Loading branch information
AlexandreYang authored and github-actions[bot] committed Nov 6, 2024
1 parent 4ab7a1a commit 01bd14f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/networkpath/traceroute/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ func (r *Runner) processTCPResults(res *tcp.Results, hname string, destinationHo
if !hop.IP.Equal(net.IP{}) {
isReachable = true
hopname = hop.IP.String()
hostname = hopname // setting to ip address for now, reverse DNS lookup will override hostname field later
}

npHop := payload.NetworkPathHop{
Expand Down

0 comments on commit 01bd14f

Please sign in to comment.