1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-09 09:45:44 -05:00
This commit is contained in:
Darien Raymond
2017-04-21 15:36:05 +02:00
parent 498c7dafdf
commit 6a90ce3c43
16 changed files with 18 additions and 0 deletions

View File

@@ -232,6 +232,7 @@ func NewAuthenticationWriter(auth Authenticator, writer io.Writer, sizeMask Uint
}
}
// Write implements io.Writer.
func (w *AuthenticationWriter) Write(b []byte) (int, error) {
cipherChunk, err := w.auth.Seal(w.buffer[2:2], b)
if err != nil {