Fix how host object is initialized during daemon startup

This commit is contained in:
Brian Picciano 2022-11-05 15:50:04 +01:00
parent ffd276bd3e
commit 0b094f057e

View File

@ -15,11 +15,14 @@ func mergeDaemonConfigIntoBootstrap(
) ( ) (
bootstrap.Bootstrap, error, bootstrap.Bootstrap, error,
) { ) {
host := hostBootstrap.ThisHost()
host.Nebula.PublicAddr = daemonConfig.VPN.PublicAddr host := bootstrap.Host{
Name: hostBootstrap.HostName,
host.Garage = nil Nebula: bootstrap.NebulaHost{
SignedPublicCredentials: hostBootstrap.Nebula.SignedPublicCredentials,
PublicAddr: daemonConfig.VPN.PublicAddr,
},
}
if allocs := daemonConfig.Storage.Allocations; len(allocs) > 0 { if allocs := daemonConfig.Storage.Allocations; len(allocs) > 0 {