Browse Source

fix ssh domain default value to domain (#930)

tags/v1.1.0
Lunny Xiao 7 years ago
parent
commit
cf47532ebc
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      modules/setting/setting.go

+ 4
- 1
modules/setting/setting.go View File

}{ }{
Disabled: false, Disabled: false,
StartBuiltinServer: false, StartBuiltinServer: false,
Domain: "localhost",
Domain: "",
Port: 22, Port: 22,
KeygenPath: "ssh-keygen", KeygenPath: "ssh-keygen",
} }
LandingPageURL = LandingPageHome LandingPageURL = LandingPageHome
} }


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

Loading…
Cancel
Save