chore: return proper state in host role getExternal()
This commit is contained in:
parent
0e410bf241
commit
af6421da88
1 changed files with 6 additions and 1 deletions
|
|
@ -93,7 +93,12 @@ func (r *Role) getInternal() (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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue