mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-20 17:26:40 +00:00
Allow sftp same user switching on windows
This commit is contained in:
@@ -46,7 +46,7 @@ func (s *Server) sftpSubsystemHandler(sess ssh.Session) {
|
||||
|
||||
log.Debugf("SFTP subsystem request from user %s (effective user %s)", sess.User(), result.User.Username)
|
||||
|
||||
if result.UsedFallback {
|
||||
if !result.RequiresUserSwitching {
|
||||
if err := s.executeSftpDirect(sess); err != nil {
|
||||
log.Errorf("SFTP direct execution: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user