Skip to content

Commit

Permalink
Merge branch 'sandbox-soltesz-lossrate' of github.com:m-lab/ndt-serve…
Browse files Browse the repository at this point in the history
…r into sandbox-soltesz-lossrate
  • Loading branch information
stephen-soltesz committed May 7, 2020
2 parents 32ebe8c + e657e29 commit e4ec8bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ndt-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
certFile = flag.String("cert", "", "The file with server certificates in PEM format.")
keyFile = flag.String("key", "", "The file with server key in PEM format.")
dataDir = flag.String("datadir", "/var/spool/ndt", "The directory in which to write data files")
tokenVerifyKey = flagx.FileBytes{}
tokenVerifyKey = flagx.FileBytesArray{}
tokenRequired5 bool
tokenRequired7 bool
tokenMachine string
Expand Down Expand Up @@ -131,7 +131,7 @@ func main() {
// to be optional for users who have no need for access tokens. An invalid
// verifier is handled safely by Setup and only prints a warning when access
// token verification is disabled.
v, err := token.NewVerifier(tokenVerifyKey)
v, err := token.NewVerifier(tokenVerifyKey.Get()...)
if (tokenRequired5 || tokenRequired7) && err != nil {
rtx.Must(err, "Failed to load verifier for when tokens are required")
}
Expand Down

0 comments on commit e4ec8bd

Please sign in to comment.