@marcel91200 / caddy Mirror · read-only / commits / 35174a8b
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

http: Fix ciphersuite logging

Cameron Moore committed Jan 16, 2020 at 15:44 UTC 35174a8ba85b6fd7dd3d28733028729d901dff33
1 file changed +1 -1
modules/caddyhttp/marshalers.go
+1 -1
@@ -73,7 +73,7 @@ type LoggableTLSConnState tls.ConnectionState
73 func (t LoggableTLSConnState) MarshalLogObject(enc zapcore.ObjectEncoder) error {
74 enc.AddBool("resumed", t.DidResume)
75 enc.AddUint16("version", t.Version)
76 - enc.AddUint16("resumed", t.CipherSuite)
76 + enc.AddUint16("ciphersuite", t.CipherSuite)
77 enc.AddString("proto", t.NegotiatedProtocol)
78 enc.AddBool("proto_mutual", t.NegotiatedProtocolIsMutual)
79 enc.AddString("server_name", t.ServerName)