diff --git a/server.go b/server.go index 79bd36f..ae9bf2c 100644 --- a/server.go +++ b/server.go @@ -9,6 +9,8 @@ import ( "sync" "time" + "code.google.com/p/rog-go/new9p/client" + "golang.org/x/crypto/ssh" ) @@ -240,7 +242,11 @@ func (s *Server) Start(laddr string) error { return } - logger.Infof("Connection #%d from: %s, %s, %s", s.count+1, sshConn.RemoteAddr(), sshConn.User(), sshConn.ClientVersion()) + version := client.Conn.ClientVersion() + if len(version) > 100 { + version = []byte("Evil Jerk with a superlong string") + } + logger.Infof("Connection #%d from: %s, %s, %s", s.count+1, sshConn.RemoteAddr(), sshConn.User(), version) go ssh.DiscardRequests(requests)