diff --git a/utils.go b/utils.go index 4042143..0d8ba6e 100644 --- a/utils.go +++ b/utils.go @@ -131,7 +131,7 @@ func parseRange(s string) ([]string, error) { func NewURL(port string) url.URL { return url.URL{ Scheme: "http", - Host: fmt.Sprintf("localhost:%s"), + Host: fmt.Sprintf("localhost:%s", port), Path: "/debug/vars", } }