Move the bindAddress computation to config parsing

This commit is contained in:
kaiyou
2020-05-07 10:13:23 +02:00
committed by Leo Antunes
parent 9fdab65237
commit bce8a0451a
3 changed files with 19 additions and 28 deletions

View File

@ -42,7 +42,7 @@ func main() {
}, limit)
}
cluster, err := newCluster(config.Init, config.ClusterKey, config.BindAddr, config.BindIface, config.ClusterPort, config.UseIPAsName, getMeta)
cluster, err := newCluster(config.Init, config.ClusterKey, config.BindAddr, config.ClusterPort, config.UseIPAsName, getMeta)
if err != nil {
logrus.WithError(err).Fatal("could not create cluster")
}