1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

change message

This commit is contained in:
Zack Scholl 2019-05-01 12:20:02 -06:00
parent e1745757ac
commit b55af54b10

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
}