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 14, 2024
1 parent 2d122d8 commit 5213da8
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 5213da8

Please sign in to comment.