mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 03:49:27 +01:00
don't call (*Config).prepareListeners twice
This commit is contained in:
parent
1a5d079670
commit
517b776b62
@ -1497,11 +1497,6 @@ func LoadConfig(filename string) (config *Config, err error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = config.prepareListeners()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to prepare listeners: %v", err)
|
||||
}
|
||||
|
||||
// #1428: Tor listeners should never see STS
|
||||
config.Server.supportedCapsWithoutSTS = caps.NewSet()
|
||||
config.Server.supportedCapsWithoutSTS.Union(config.Server.supportedCaps)
|
||||
|
Loading…
Reference in New Issue
Block a user