mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 00:34:01 +03:00
Use pool for frames
This commit is contained in:
@@ -18,6 +18,7 @@ func DirectInit(conn net.Conn, conf *config.Config) (int16, io.ReadWriteCloser,
|
||||
if err != nil {
|
||||
return 0, nil, errors.Annotate(err, "Cannot extract frame")
|
||||
}
|
||||
defer obfuscated2.ReturnFrame(frame)
|
||||
|
||||
obfs2, dc, err := obfuscated2.ParseObfuscated2ClientFrame(conf.Secret, frame)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user