diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-15 00:07:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 00:07:37 +0800 |
commit | cf47532ebc57d31d854c2ba5b7d920c3f492913f (patch) | |
tree | 929ad9e0a7f2f421350ff9674b54d9ac795bcf22 /modules | |
parent | 4cfde304df9b9aa9b8bc0830b821715575f1f28c (diff) | |
download | gitea-cf47532ebc57d31d854c2ba5b7d920c3f492913f.tar.gz gitea-cf47532ebc57d31d854c2ba5b7d920c3f492913f.zip |
fix ssh domain default value to domain (#930)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 583dab40fa..bbccb44eab 100644 --- a/modules/setting/setting.go +++ b/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 { |