Fixed -self host:port formatting bug

This commit is contained in:
Ivan Daniluk 2015-08-20 21:48:53 -04:00
parent b9177219e3
commit fec02f6932
1 changed files with 1 additions and 1 deletions

View File

@ -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",
}
}