mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-18 23:00:12 +00:00
comments
This commit is contained in:
1 parent
58530e6920
commit
8b71647b9d
3 files changed
+5
-1
No files matched your search
@@ -24,12 +24,15 @@ type ServerSession struct {
|
||||
responseWriter io.Writer
|
||||
}
|
||||
|
||||
// NewServerSession creates a new ServerSession, using the given UserValidator.
|
||||
// The ServerSession instance doesn't take ownership of the validator.
|
||||
func NewServerSession(validator protocol.UserValidator) *ServerSession {
|
||||
return &ServerSession{
|
||||
userValidator: validator,
|
||||
}
|
||||
}
|
||||
|
||||
// Release implements common.Releaseable.
|
||||
func (this *ServerSession) Release() {
|
||||
this.userValidator = nil
|
||||
this.requestBodyIV = nil
|
||||
|
||||
Reference in new issue
Block a user