3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 03:02:48 +01:00

Merge pull request #603 from slingamn/issue565_followup

remove obsolete consistency check
This commit is contained in:
Daniel Oaks 2019-07-13 10:12:44 +10:00 committed by GitHub
commit 54b22d556c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -797,19 +797,6 @@ func LoadConfig(filename string) (config *Config, err error) {
}
}
for _, listenAddress := range config.Server.TorListeners.Listeners {
found := false
for _, configuredListener := range config.Server.Listen {
if listenAddress == configuredListener {
found = true
break
}
}
if !found {
return nil, fmt.Errorf("%s is configured as a Tor listener, but is not in server.listen", listenAddress)
}
}
err = config.prepareListeners()
if err != nil {
return nil, fmt.Errorf("failed to prepare listeners: %v", err)