Skip to content

Commit

Permalink
Add description to DialInteractive
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Oct 5, 2020
1 parent ba1c104 commit edc2a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ import (
)

func main() {
if err := telnet.DialInteractive(os.Stdin, os.Stdout, "172.19.0.2:8081", "banana"); err != nil {
err := telnet.DialInteractive(os.Stdin, os.Stdout, "172.19.0.2:8081", "")
if err != nil {
log.Println(err)
}
}
Expand Down
3 changes: 2 additions & 1 deletion telnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ func Dial(address string, password string, options ...Option) (*Conn, error) {
}

// DialInteractive parses commands from input reader, executes them on remote
// server and writes responses to output writer.
// server and writes responses to output writer. Password can be empty string.
// In this case password will be prompted in an interactive window.
func DialInteractive(r io.Reader, w io.Writer, address string, password string, options ...Option) error {
settings := DefaultSettings

Expand Down

0 comments on commit edc2a0c

Please sign in to comment.