include pastebin
This commit is contained in:
parent
13a0b53e3e
commit
83b37864ef
9 changed files with 188 additions and 14 deletions
|
|
@ -12,9 +12,10 @@ type echoHandler struct {
|
|||
count int
|
||||
}
|
||||
|
||||
func (e *echoHandler) HandleExec(_ string, conn *ssh.ServerConn, channel ssh.Channel) {
|
||||
func (e *echoHandler) HandleExec(_ string, conn *ssh.ServerConn, channel ssh.Channel) error {
|
||||
e.count += 1
|
||||
io.Copy(channel, channel)
|
||||
_, err := io.Copy(channel, channel)
|
||||
return err
|
||||
}
|
||||
|
||||
func (e *echoHandler) Close() error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue