Skip to content

Commit

Permalink
ndt-server.go: use ndt7-specific listener
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jan 20, 2019
1 parent 731fea0 commit 27a942d
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 @@ -18,6 +18,7 @@ import (
"github.com/m-lab/ndt-server/legacy"
"github.com/m-lab/ndt-server/logging"
"github.com/m-lab/ndt-server/ndt7/server/download"
"github.com/m-lab/ndt-server/ndt7/server/listener"
"github.com/m-lab/ndt-server/ndt7/spec"

"github.com/prometheus/client_golang/prometheus"
Expand Down Expand Up @@ -190,7 +191,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()

// Serve until the context is canceled.
Expand Down

0 comments on commit 27a942d

Please sign in to comment.