Skip to content

Commit

Permalink
perf: fix onlysu method
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Aug 13, 2024
1 parent d7ea361 commit 2f8fb12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/srvconn/conn_ssh_su.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func LoginToSSHSu(sc *SSHConnection) error {
return err
}
switch cfg.MethodType {
case SuMethodSu, SuMethodSudo:
case SuMethodSu, SuMethodSudo,
SuMethodOnlySudo, SuMethodOnlySu:
startCmd := cfg.SuCommand()
suService.execCommand = func() {
_ = sc.session.Start(startCmd)
Expand Down

0 comments on commit 2f8fb12

Please sign in to comment.