diff --git a/logic/peers.go b/logic/peers.go index 258a505f..0fe33298 100644 --- a/logic/peers.go +++ b/logic/peers.go @@ -181,6 +181,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N hostPeerUpdate.HostNetworkInfo[peerHost.PublicKey.String()] = models.HostNetworkInfo{ Interfaces: peerHost.Interfaces, ListenPort: peerPort, + IsStatic: peerHost.IsStatic, } nodePeer = peerConfig } else { @@ -191,6 +192,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N hostPeerUpdate.HostNetworkInfo[peerHost.PublicKey.String()] = models.HostNetworkInfo{ Interfaces: peerHost.Interfaces, ListenPort: peerPort, + IsStatic: peerHost.IsStatic, } nodePeer = hostPeerUpdate.Peers[peerIndexMap[peerHost.PublicKey.String()]] } diff --git a/models/metrics.go b/models/metrics.go index b8abf697..f83c33e9 100644 --- a/models/metrics.go +++ b/models/metrics.go @@ -44,6 +44,7 @@ type HostInfoMap map[string]HostNetworkInfo type HostNetworkInfo struct { Interfaces []Iface `json:"interfaces" yaml:"interfaces"` ListenPort int `json:"listen_port" yaml:"listen_port"` + IsStatic bool `json:"is_static"` } // PeerMap - peer map for ids and addresses in metrics