Fix how host object is initialized during daemon startup

main
Brian Picciano 7 months ago
parent ffd276bd3e
commit 0b094f057e
  1. 11
      entrypoint/src/cmd/entrypoint/daemon_util.go

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

Loading…
Cancel
Save