mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-11 14:30:06 -05:00
mapper: produce map before poll (#2628)
This commit is contained in:
@@ -143,7 +143,7 @@ func ParseTraceroute(output string) (Traceroute, error) {
|
||||
|
||||
// Parse latencies
|
||||
for j := 5; j <= 7; j++ {
|
||||
if matches[j] != "" {
|
||||
if j < len(matches) && matches[j] != "" {
|
||||
ms, err := strconv.ParseFloat(matches[j], 64)
|
||||
if err != nil {
|
||||
return Traceroute{}, fmt.Errorf("parsing latency: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user