1
0
Fork 0

fix: use proper addresses on dns nodes

This commit is contained in:
Arthur K. 2026-01-17 18:41:36 +03:00
parent 67d722c226
commit bbee40ec98
Signed by: wzray
GPG key ID: B97F30FDC4636357
2 changed files with 4 additions and 4 deletions

View file

@ -48,10 +48,10 @@ func parseState(state types.HostState) (string, []byte) {
var builder strings.Builder
for _, d := range state.Domains {
builder.WriteString(fmt.Sprintf("%s %s\n", state.Name, d))
builder.WriteString(fmt.Sprintf("%s %s\n", state.Endpoint, d))
}
return hostsDir + state.Endpoint, []byte(builder.String())
return hostsDir + state.Name, []byte(builder.String())
}
func (r *Role) OnStartup(ctx context.Context) error {