remove obsolete consistency check

tor-listeners.listeners was checked against listen,
but listen is obsolete now, so config load would fail
on a config that used the new style `listeners` instead of
`listen` --- unless tor-listeners.listeners was empty, which
it should be under the new style, but there's no need to enforce
that
This commit is contained in:
Shivaram Lingamneni 2019-07-12 15:19:43 -04:00
parent ecf945038f
commit ce651b4a90
1 changed files with 0 additions and 13 deletions

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)