mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-14 14:47:12 +00:00
Remove debug infomation
This commit is contained in:
1 parent
d12737b3b8
commit
919fd5b16b
2 files changed
+3
-6
No files matched your search
@@ -25,7 +25,6 @@ func NewCryptionReader(stream cipher.Stream, reader io.Reader) *CryptionReader {
|
||||
// a multiply of BlockSize()
|
||||
func (reader CryptionReader) Read(blocks []byte) (int, error) {
|
||||
nBytes, err := reader.reader.Read(blocks)
|
||||
log.Debug("CryptionReader: Read %d bytes", nBytes)
|
||||
if nBytes > 0 {
|
||||
reader.stream.XORKeyStream(blocks[:nBytes], blocks[:nBytes])
|
||||
}
|
||||
@@ -52,7 +51,6 @@ func NewCryptionWriter(stream cipher.Stream, writer io.Writer) *CryptionWriter {
|
||||
// Write writes the give blocks to underlying writer. The length of the blocks
|
||||
// must be a multiply of BlockSize()
|
||||
func (writer CryptionWriter) Write(blocks []byte) (int, error) {
|
||||
log.Debug("CryptionWriter writing %d bytes", len(blocks))
|
||||
writer.stream.XORKeyStream(blocks, blocks)
|
||||
return writer.writer.Write(blocks)
|
||||
}
|
||||
Reference in new issue
Block a user