mirror of https://github.com/divan/expvarmon.git
Fixed -self host:port formatting bug
This commit is contained in:
parent
b9177219e3
commit
fec02f6932
2
utils.go
2
utils.go
|
@ -131,7 +131,7 @@ func parseRange(s string) ([]string, error) {
|
||||||
func NewURL(port string) url.URL {
|
func NewURL(port string) url.URL {
|
||||||
return url.URL{
|
return url.URL{
|
||||||
Scheme: "http",
|
Scheme: "http",
|
||||||
Host: fmt.Sprintf("localhost:%s"),
|
Host: fmt.Sprintf("localhost:%s", port),
|
||||||
Path: "/debug/vars",
|
Path: "/debug/vars",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue