Use the StatePath to config when loading the state

This commit is contained in:
kaiyou
2020-05-14 12:03:09 +02:00
committed by Leo Antunes
parent a0882dad49
commit 31b8263e96
3 changed files with 18 additions and 11 deletions

View File

@ -35,7 +35,7 @@ func main() {
logrus.SetLevel(logLevel)
// Create the wireguard and cluster configuration
cluster, err := cluster.New(config.Init, config.ClusterKey, config.BindAddr, config.ClusterPort, config.UseIPAsName)
cluster, err := cluster.New(config.Init, config.ClusterKey, config.BindAddr, config.ClusterPort, config.StatePath, config.UseIPAsName)
if err != nil {
logrus.WithError(err).Fatal("could not create cluster")
}