Compare commits

..

No commits in common. "d916d1a6300dfbcb9e0b52c1ba4b351d6856b192" and "ffd276bd3eb1ca1d56e0cb7e60064d711e301bf4" have entirely different histories.

3 changed files with 5 additions and 13 deletions

View File

@ -71,11 +71,6 @@ func reloadBootstrap(
} }
hostBootstrap.Hosts = newHosts hostBootstrap.Hosts = newHosts
if err := writeBootstrapToDataDir(hostBootstrap); err != nil {
return bootstrap.Bootstrap{}, false, fmt.Errorf("writing new bootstrap to data dir: %w", err)
}
return hostBootstrap, true, nil return hostBootstrap, true, nil
} }

View File

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

View File

@ -32,7 +32,7 @@ no-hosts
user= user=
group= group=
{{- $domain := .Domain -}} {{- $domain := . -}}
{{- range .Hosts }} {{- range .Hosts }}
address=/{{ .Name }}.hosts.{{ $domain }}/{{ .IP }} address=/{{ .Name }}.hosts.{{ $domain }}/{{ .IP }}