change message

This commit is contained in:
Zack Scholl 2019-05-01 12:20:02 -06:00
parent e1745757ac
commit b55af54b10
1 changed files with 6 additions and 1 deletions

View File

@ -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
}