forked from External/ergo
don't call (*Config).prepareListeners twice
This commit is contained in:
parent
1a5d079670
commit
517b776b62
1 changed files with 0 additions and 5 deletions
|
|
@ -1497,11 +1497,6 @@ func LoadConfig(filename string) (config *Config, err error) {
|
||||||
return nil, err
|
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
|
// #1428: Tor listeners should never see STS
|
||||||
config.Server.supportedCapsWithoutSTS = caps.NewSet()
|
config.Server.supportedCapsWithoutSTS = caps.NewSet()
|
||||||
config.Server.supportedCapsWithoutSTS.Union(config.Server.supportedCaps)
|
config.Server.supportedCapsWithoutSTS.Union(config.Server.supportedCaps)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue