Skip to content

Commit a28145f

Browse files
sapkjeffliu27
authored andcommitted
setting: don't require same running user for internal SSH (like win platform) (go-gitea#7215)
1 parent c1e575c commit a28145f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func forcePathSeparator(path string) {
438438
// This check is ignored under Windows since SSH remote login is not the main
439439
// method to login on Windows.
440440
func IsRunUserMatchCurrentUser(runUser string) (string, bool) {
441-
if IsWindows {
441+
if IsWindows || SSH.StartBuiltinServer {
442442
return "", true
443443
}
444444

0 commit comments

Comments
 (0)