Skip to content

Commit

Permalink
Merge bd91f05 into b42d01e
Browse files Browse the repository at this point in the history
  • Loading branch information
pboothe committed May 28, 2019
2 parents b42d01e + bd91f05 commit 5eec33b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ndt-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ var (

func defaultHandler(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "text/plain")
w.Write([]byte(`
w.Write([]byte(fmt.Sprintf(`
This is an NDT server.
It only works with Websockets and SSL.
You can run an NDT7 test (recommended) by going here:
%s/static/ndt7.html
You can run a legacy test here:
%s/static/widget.html (over http and websockets)
%s/static/widget.html (over https and secure websockets)
You can run a test here: :3010/static/widget.html
You can monitor its status on port :9090/metrics.
`))
`, *ndt7Addr, *legacyAddr, *legacyWssAddr)))
}

func catchSigterm() {
Expand Down

0 comments on commit 5eec33b

Please sign in to comment.