Set session ticket keys properly (fixed in Go 1.8)

This commit is contained in:
Matthew Holt 2017-01-15 09:30:02 -07:00
parent 8464020f7c
commit c6ba43f888
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -271,7 +271,6 @@ func standaloneTLSTicketKeyRotation(c *tls.Config, ticker *time.Ticker, exitChan
c.SessionTicketsDisabled = true // bail if we don't have the entropy for the first one
return
}
c.SessionTicketKey = keys[0] // SetSessionTicketKeys doesn't set a 'tls.keysAlreadySet'
c.SetSessionTicketKeys(setSessionTicketKeysTestHook(keys))
for {