From fec02f6932329b79af4f8b92b95bb7a52755fd03 Mon Sep 17 00:00:00 2001 From: Ivan Daniluk Date: Thu, 20 Aug 2015 21:48:53 -0400 Subject: [PATCH] Fixed -self host:port formatting bug --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", } }