Skip to content

Commit 443697f

Browse files
committed
chore: optimize trojan
1 parent fa44e5b commit 443697f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tunnels/trojan/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (s *Server) Handle(conn *tcp.Conn) tcp.SerRet {
121121
continue
122122
}
123123

124-
length := uint16(len(payload))
124+
length := uint16(n)
125125

126126
lengthcrlf := [4]byte{byte(length >> 8), byte(length), 0x0d, 0x0a}
127127

0 commit comments

Comments
 (0)