Skip to content

Commit

Permalink
honor client auth mode specified in config
Browse files Browse the repository at this point in the history
  • Loading branch information
maditya committed Jun 1, 2020
1 parent 61fcaee commit 1b4a703
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ func initHTTPServer(ctx context.Context, tlsConfig *tls.Config, grpcServer *grpc
})
mux.Handle("/", gwmux)

tlsConfig.ClientAuth = tls.RequireAndVerifyClientCert

srv := &http.Server{
Addr: addr,
// to discard noisy messages like
Expand Down Expand Up @@ -117,7 +115,7 @@ func Main(keyP crypki.KeyIDProcessor) {
log.Fatalf("invalid config: %v", err)
}

log.SetFlags(log.LstdFlags | log.Lshortfile)
log.SetFlags(log.LstdFlags | log.Lshortfile | log.LUTC | log.Lmicroseconds)
file, err := os.OpenFile(logFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {
log.Fatalf("failed to create log file: %v", err)
Expand Down

0 comments on commit 1b4a703

Please sign in to comment.