diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index 622fe971..43691b0b 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -97,7 +97,12 @@ func (s *server) run() (err error) { func (s *server) clientCommuncation(port string, c *comm.Comm) (err error) { // send ok to tell client they are connected log.Debugf("sending '%s'", s.banner) - err = c.Send([]byte(s.banner)) + if len(s.banner) > 0 { + err = c.Send([]byte(s.banner)) + } else { + err = c.Send([]byte("ok")) + + } if err != nil { return }