Use advertise addr not 'unique.network.ip' in verbose node-status

This commit is contained in:
James Rasell
2018-01-11 07:17:58 +00:00
parent 3868e88518
commit 68a2e81e7b

View File

@@ -1171,8 +1171,11 @@ func (n *Node) TerminalStatus() bool {
// Stub returns a summarized version of the node
func (n *Node) Stub() *NodeListStub {
addr, _, _ := net.SplitHostPort(n.HTTPAddr)
return &NodeListStub{
Address: n.Attributes["unique.network.ip-address"],
Address: addr,
ID: n.ID,
Datacenter: n.Datacenter,
Name: n.Name,