Skip to content

Commit

Permalink
Don't allow reload with old-style backend configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Oct 6, 2020
1 parent f7ed6ad commit aa0191e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/signaling/backend_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ func getConfiguredHosts(backendIds string, config *goconf.ConfigFile) (hosts map
}

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 != "" {
configuredHosts := getConfiguredHosts(backendIds, config)

Expand Down

0 comments on commit aa0191e

Please sign in to comment.