Skip to content

Commit

Permalink
fix(ndt-server.go): make ndt7 work again
Browse files Browse the repository at this point in the history
Cherry pick of 27a942d
with the required changes to make it apply cleanly.

With this diff applied, ndt7 works again.
  • Loading branch information
bassosimone committed Mar 8, 2019
1 parent dd07f19 commit 40737b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ndt-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/m-lab/ndt-server/legacy/testresponder"
"github.com/m-lab/ndt-server/logging"
"github.com/m-lab/ndt-server/metrics"
"github.com/m-lab/ndt-server/ndt7/server/listener"
"github.com/m-lab/ndt-server/ndt7/server/download"
"github.com/m-lab/ndt-server/ndt7/spec"

Expand Down Expand Up @@ -174,7 +175,7 @@ func main() {
Handler: logging.MakeAccessLogHandler(ndt7Mux),
}
log.Println("About to listen for ndt7 tests on " + *ndt7Port)
rtx.Must(httpx.ListenAndServeTLSAsync(ndt7Server, *certFile, *keyFile), "Could not start ndt7 server")
rtx.Must(listener.ListenAndServeTLSAsync(ndt7Server, *certFile, *keyFile), "Could not start ndt7 server")
defer ndt7Server.Close()
} else {
log.Printf("Cert=%q and Key=%q means no TLS services will be started.\n", *certFile, *keyFile)
Expand Down

0 comments on commit 40737b5

Please sign in to comment.