mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-25 15:21:44 +00:00
Release all references
This commit is contained in:
1 parent
f5960db27e
commit
ff69ac7a0e
9 files changed
+42
-9
No files matched your search
@@ -23,6 +23,10 @@ func (this *AuthChunkWriter) Write(buffer *alloc.Buffer) error {
|
||||
return this.writer.Write(buffer)
|
||||
}
|
||||
|
||||
func (this *AuthChunkWriter) Release() {
|
||||
this.writer = nil
|
||||
}
|
||||
|
||||
func Authenticate(buffer *alloc.Buffer) {
|
||||
fnvHash := fnv.New32a()
|
||||
fnvHash.Write(buffer.Value)
|
||||
|
||||
Reference in new issue
Block a user