1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 13:05:28 -05:00
This commit is contained in:
Darien Raymond
2016-12-13 09:32:29 +01:00
parent 76776ddf99
commit a9790d59f0
2 changed files with 10 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ func hashTimestamp(t protocol.Timestamp) []byte {
return bytes
}
// ClientSession stores connection session info for VMess client.
type ClientSession struct {
requestBodyKey []byte
requestBodyIV []byte
@@ -40,6 +41,7 @@ type ClientSession struct {
idHash protocol.IDHash
}
// NewClientSession creates a new ClientSession.
func NewClientSession(idHash protocol.IDHash) *ClientSession {
randomBytes := make([]byte, 33) // 16 + 16 + 1
rand.Read(randomBytes)