mirror of
https://github.com/tuxdotrs/trok.git
synced 2025-12-16 19:10:05 +05:30
fix(server): tcp tunnel missing initial bytes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user