Browse Source

Merge pull request #2980 from moorereason/bugfix-ciphersuite-logging

v2: http: Fix ciphersuite logging
master
Zaq? Wiedmann 6 years ago
committed by GitHub
parent
commit
07ef4b0c7d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/caddyhttp/marshalers.go

2
modules/caddyhttp/marshalers.go

@ -73,7 +73,7 @@ type LoggableTLSConnState tls.ConnectionState
func (t LoggableTLSConnState) MarshalLogObject(enc zapcore.ObjectEncoder) error {
enc.AddBool("resumed", t.DidResume)
enc.AddUint16("version", t.Version)
enc.AddUint16("resumed", t.CipherSuite)
enc.AddUint16("ciphersuite", t.CipherSuite)
enc.AddString("proto", t.NegotiatedProtocol)
enc.AddBool("proto_mutual", t.NegotiatedProtocolIsMutual)
enc.AddString("server_name", t.ServerName)

Loading…
Cancel
Save