Преглед изворни кода

don't call (*Config).prepareListeners twice

tags/v2.7.0-rc1
Shivaram Lingamneni пре 3 година
родитељ
комит
517b776b62
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0
    5
      irc/config.go

+ 0
- 5
irc/config.go Прегледај датотеку

@@ -1497,11 +1497,6 @@ func LoadConfig(filename string) (config *Config, err error) {
1497 1497
 		return nil, err
1498 1498
 	}
1499 1499
 
1500
-	err = config.prepareListeners()
1501
-	if err != nil {
1502
-		return nil, fmt.Errorf("failed to prepare listeners: %v", err)
1503
-	}
1504
-
1505 1500
 	// #1428: Tor listeners should never see STS
1506 1501
 	config.Server.supportedCapsWithoutSTS = caps.NewSet()
1507 1502
 	config.Server.supportedCapsWithoutSTS.Union(config.Server.supportedCaps)

Loading…
Откажи
Сачувај