mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1312
This commit is contained in:
parent
32f29aca52
commit
c470f63daf
6 changed files with 69 additions and 18 deletions
|
|
@ -599,9 +599,7 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
|||
// now that the datastore is initialized, we can load the cloak secret from it
|
||||
// XXX this modifies config after the initial load, which is naughty,
|
||||
// but there's no data race because we haven't done SetConfig yet
|
||||
if config.Server.Cloaks.Enabled {
|
||||
config.Server.Cloaks.SetSecret(LoadCloakSecret(server.store))
|
||||
}
|
||||
config.Server.Cloaks.SetSecret(LoadCloakSecret(server.store))
|
||||
|
||||
// activate the new config
|
||||
server.SetConfig(config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue