mirror of
https://github.com/SagerNet/sing-shadowtls.git
synced 2025-04-05 13:17:36 +03:00
Add TLS session id generator
This commit is contained in:
parent
3ba2f038e1
commit
320d58c57a
4 changed files with 42 additions and 14 deletions
|
@ -733,6 +733,8 @@ type Config struct {
|
|||
// used for debugging.
|
||||
KeyLogWriter io.Writer
|
||||
|
||||
SessionIDGenerator func(clientHello []byte, sessionID []byte) error
|
||||
|
||||
// mutex protects sessionTicketKeys and autoSessionTicketKeys.
|
||||
mutex sync.RWMutex
|
||||
// sessionTicketKeys contains zero or more ticket keys. If set, it means
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue