go(settings): add domain fallback
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1f8bbf7ec6
commit
fb74533a96
@ -321,7 +321,12 @@ func (s *Settings) SetSessionCookieEncrSecret(sessionCookieEncrSecret string) {
|
||||
|
||||
// SetHTTPDomain sets the httpDomain.
|
||||
func (s *Settings) SetHTTPDomain(domain string) {
|
||||
s.httpDomain = domain
|
||||
switch domain {
|
||||
case "":
|
||||
s.httpDomain = "localhost"
|
||||
default:
|
||||
s.httpDomain = domain
|
||||
}
|
||||
}
|
||||
|
||||
// SetHTTPSecure sets the httpSecure.
|
||||
|
Loading…
Reference in New Issue
Block a user