|
|
@@ -126,7 +126,7 @@ func (s *Server) getClientStream(ctx context.Context, cancel context.CancelFunc,
|
|
126
|
126
|
|
|
127
|
127
|
wConn = newLogReadWriteCloser(wConn, s.logger, socketID, "client")
|
|
128
|
128
|
wConn = wrappers.NewStreamCipherRWC(wConn, obfs2.Encryptor, obfs2.Decryptor)
|
|
129
|
|
- wConn = newCtxReadWriteCloser(ctx, cancel, wConn)
|
|
|
129
|
+ wConn = wrappers.NewCtxRWC(ctx, cancel, wConn)
|
|
130
|
130
|
|
|
131
|
131
|
return wConn, dc, nil
|
|
132
|
132
|
}
|
|
|
@@ -146,7 +146,7 @@ func (s *Server) getTelegramStream(ctx context.Context, cancel context.CancelFun
|
|
146
|
146
|
|
|
147
|
147
|
wConn = newLogReadWriteCloser(wConn, s.logger, socketID, "telegram")
|
|
148
|
148
|
wConn = wrappers.NewStreamCipherRWC(wConn, obfs2.Encryptor, obfs2.Decryptor)
|
|
149
|
|
- wConn = newCtxReadWriteCloser(ctx, cancel, wConn)
|
|
|
149
|
+ wConn = wrappers.NewCtxRWC(ctx, cancel, wConn)
|
|
150
|
150
|
|
|
151
|
151
|
return wConn, nil
|
|
152
|
152
|
}
|