fix(server): tcp tunnel missing initial bytes

This commit is contained in:
tux
2025-12-12 02:18:26 +05:30
parent b1e8faab7c
commit cb31ac762c
2 changed files with 9 additions and 5 deletions

View File

@@ -29,6 +29,10 @@ func InitProtocolHandler(conn net.Conn) *ProtocolHandler {
}
}
func (p *ProtocolHandler) Reader() *bufio.Reader {
return p.reader
}
func (p *ProtocolHandler) ReadMessage() (*Message, error) {
data, err := p.reader.ReadString('\n')
if err != nil {