mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
grumble: remove accidental peer certificate debugging.
This commit is contained in:
parent
f287fedb33
commit
e72c8852d2
1 changed files with 0 additions and 2 deletions
|
|
@ -260,13 +260,11 @@ func (server *Server) handleIncomingClient(conn net.Conn) (err error) {
|
|||
}
|
||||
|
||||
state := tlsconn.ConnectionState()
|
||||
log.Printf("peerCerts = %#v", state.PeerCertificates)
|
||||
if len(state.PeerCertificates) > 0 {
|
||||
hash := sha1.New()
|
||||
hash.Write(state.PeerCertificates[0].Raw)
|
||||
sum := hash.Sum(nil)
|
||||
client.certHash = hex.EncodeToString(sum)
|
||||
log.Printf("%v", client.CertHash())
|
||||
}
|
||||
|
||||
// Check whether the client's cert hash is banned
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue