Skip to content

Commit

Permalink
Merge pull request #36 from maditya/fix-authmode
Browse files Browse the repository at this point in the history
honor client auth mode specified in config
  • Loading branch information
maditya authored Jun 1, 2020
2 parents 61fcaee + 1b4a703 commit e545374
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 e545374

Please sign in to comment.