From 9c918676ed5b20842404b408261042de29b87388 Mon Sep 17 00:00:00 2001 From: UlisseMini Date: Fri, 25 Jan 2019 12:25:05 -0500 Subject: [PATCH] sshd: Better comments and changed += 1 to ++ --- sshd/terminal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sshd/terminal.go b/sshd/terminal.go index 7e48c0b..0a1c32f 100644 --- a/sshd/terminal.go +++ b/sshd/terminal.go @@ -55,7 +55,7 @@ func (c sshConn) Name() string { return c.User() } -// Extending ssh/terminal to include a closer interface +// Terminal extends ssh/terminal to include a close method type Terminal struct { terminal.Terminal Conn Connection @@ -106,7 +106,7 @@ func NewTerminal(conn *ssh.ServerConn, ch ssh.NewChannel) (*Terminal, error) { return &term, nil } -// Find session channel and make a Terminal from it +// NewSession Finds a session channel and make a Terminal from it func NewSession(conn *ssh.ServerConn, channels <-chan ssh.NewChannel) (*Terminal, error) { // Make a terminal from the first session found for ch := range channels {