mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-08 00:42:25 +02:00
Don't allow reload with old-style backend configurations.
This commit is contained in:
parent
f7ed6addb7
commit
aa0191ef7e
|
@ -200,6 +200,11 @@ func getConfiguredHosts(backendIds string, config *goconf.ConfigFile) (hosts map
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BackendConfiguration) Reload(config *goconf.ConfigFile) {
|
func (b *BackendConfiguration) Reload(config *goconf.ConfigFile) {
|
||||||
|
if b.compatBackend != nil {
|
||||||
|
log.Println("Old-style configuration active, reload is not supported")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if backendIds, _ := config.GetString("backend", "backends"); backendIds != "" {
|
if backendIds, _ := config.GetString("backend", "backends"); backendIds != "" {
|
||||||
configuredHosts := getConfiguredHosts(backendIds, config)
|
configuredHosts := getConfiguredHosts(backendIds, config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue