1
0
Fork 0

chore: return proper state in host role getExternal()

This commit is contained in:
Arthur K. 2026-01-19 18:44:07 +03:00
parent 0e410bf241
commit af6421da88
Signed by: wzray
GPG key ID: B97F30FDC4636357

View file

@ -93,7 +93,12 @@ func (r *Role) getInternal() (types.HostState, error) {
} }
func (r *Role) getExternal() (types.HostState, error) { func (r *Role) getExternal() (types.HostState, error) {
return types.HostState{}, nil return types.HostState{
Domains: r.externalDomains,
Address: r.config.IpAddress,
Hostname: r.state.Self.Hostname,
}, nil
} }
func (r *Role) RegisterHandlers(rg types.Registrator) { func (r *Role) RegisterHandlers(rg types.Registrator) {