|
|
@@ -124,7 +124,7 @@ func (s *Server) getClientStream(ctx context.Context, cancel context.CancelFunc,
|
|
124
|
124
|
return nil, 0, errors.Annotate(err, "Cannot create client stream")
|
|
125
|
125
|
}
|
|
126
|
126
|
|
|
127
|
|
- wConn = newLogReadWriteCloser(wConn, s.logger, socketID, "client")
|
|
|
127
|
+ wConn = wrappers.NewLogRWC(wConn, s.logger, socketID, "client")
|
|
128
|
128
|
wConn = wrappers.NewStreamCipherRWC(wConn, obfs2.Encryptor, obfs2.Decryptor)
|
|
129
|
129
|
wConn = wrappers.NewCtxRWC(ctx, cancel, wConn)
|
|
130
|
130
|
|
|
|
@@ -144,7 +144,7 @@ func (s *Server) getTelegramStream(ctx context.Context, cancel context.CancelFun
|
|
144
|
144
|
return nil, errors.Annotate(err, "Cannot write hadnshake frame")
|
|
145
|
145
|
}
|
|
146
|
146
|
|
|
147
|
|
- wConn = newLogReadWriteCloser(wConn, s.logger, socketID, "telegram")
|
|
|
147
|
+ wConn = wrappers.NewLogRWC(wConn, s.logger, socketID, "telegram")
|
|
148
|
148
|
wConn = wrappers.NewStreamCipherRWC(wConn, obfs2.Encryptor, obfs2.Decryptor)
|
|
149
|
149
|
wConn = wrappers.NewCtxRWC(ctx, cancel, wConn)
|
|
150
|
150
|
|