ziutek / telnet

Package to handle a telnet connection
Other
141 stars 60 forks source link

command data should be writeln to tcp Conn #8

Closed djadala closed 7 years ago

djadala commented 7 years ago

Hi, conn.go line 133 https://github.com/ziutek/telnet/blob/master/conn.go#L113

if _, err := c.Write(data); err != nil {

should be

if _, err := c.Conn.Write(data); err != nil {

fix is trivial, but if you want PR, i can send one this week.

Regards, Jamil Djadala

ziutek commented 7 years ago

Fixed. Thanks!