Skip to content

Commit 1b4a703

Browse files
committed
honor client auth mode specified in config
1 parent 61fcaee commit 1b4a703

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/server.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ func initHTTPServer(ctx context.Context, tlsConfig *tls.Config, grpcServer *grpc
5656
})
5757
mux.Handle("/", gwmux)
5858

59-
tlsConfig.ClientAuth = tls.RequireAndVerifyClientCert
60-
6159
srv := &http.Server{
6260
Addr: addr,
6361
// to discard noisy messages like
@@ -117,7 +115,7 @@ func Main(keyP crypki.KeyIDProcessor) {
117115
log.Fatalf("invalid config: %v", err)
118116
}
119117

120-
log.SetFlags(log.LstdFlags | log.Lshortfile)
118+
log.SetFlags(log.LstdFlags | log.Lshortfile | log.LUTC | log.Lmicroseconds)
121119
file, err := os.OpenFile(logFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
122120
if err != nil {
123121
log.Fatalf("failed to create log file: %v", err)

0 commit comments

Comments
 (0)