Skip to content

Commit

Permalink
fix(server): commands host & port
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Apr 12, 2022
1 parent d3669af commit ccbbd0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ func softMiddleware(ac *appCfg.Config) wish.Middleware {
ctx = context.WithValue(ctx, "session", s) //nolint:revive

use := "ssh"
port := ac.Cfg.Port
port := ac.Port
if port != 22 {
use += fmt.Sprintf(" -p%d", port)
}
use += fmt.Sprintf(" %s", ac.Cfg.Host)
use += fmt.Sprintf(" %s", ac.Host)
cmd := cmd.RootCommand()
cmd.Use = use
cmd.SetIn(s)
Expand Down

0 comments on commit ccbbd0c

Please sign in to comment.