mirror of
https://github.com/SagerNet/sing-shadowsocks.git
synced 2025-04-03 20:07:40 +03:00
Fix write response for AEAD server
This commit is contained in:
parent
e55284e180
commit
028358027b
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ func (c *serverConn) writeResponse(payload []byte) (n int, err error) {
|
|||
|
||||
bufferedWriter := writer.BufferedWriter(header.Len())
|
||||
if len(payload) > 0 {
|
||||
_, err = bufferedWriter.Write(payload)
|
||||
n, err = bufferedWriter.Write(payload)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue