소스 검색

fix ssh domain default value to domain (#930)

tags/v1.1.0
Lunny Xiao 7 년 전
부모
커밋
cf47532ebc
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      modules/setting/setting.go

+ 4
- 1
modules/setting/setting.go 파일 보기

@@ -96,7 +96,7 @@ var (
}{
Disabled: false,
StartBuiltinServer: false,
Domain: "localhost",
Domain: "",
Port: 22,
KeygenPath: "ssh-keygen",
}
@@ -623,6 +623,9 @@ please consider changing to GITEA_CUSTOM`)
LandingPageURL = LandingPageHome
}

if len(SSH.Domain) == 0 {
SSH.Domain = Domain
}
SSH.RootPath = path.Join(homeDir, ".ssh")
SSH.KeyTestPath = os.TempDir()
if err = Cfg.Section("server").MapTo(&SSH); err != nil {

Loading…
취소
저장