diff --git a/proxy/traceroute.go b/proxy/traceroute.go index 85098b1..f85396b 100644 --- a/proxy/traceroute.go +++ b/proxy/traceroute.go @@ -68,7 +68,7 @@ func tracerouteHandler(httpW http.ResponseWriter, httpR *http.Request) { } if result != nil { errString = string(result) - errString = regexp.MustCompile(`\s*(\d*)\s*\*\n`).ReplaceAllStringFunc(errString, func(w string) string { + errString = regexp.MustCompile(`(?m)^\s*(\d*)\s*\*\n`).ReplaceAllStringFunc(errString, func(w string) string { skippedCounter++ return "" })