Browse Source

Merge branch 'feature_host_relay' of https://github.com/gravitl/netmaker into feature_host_metrics

Abhishek Kondur 2 years ago
parent
commit
f6741cc7d6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      models/api_host.go

+ 4 - 1
models/api_host.go

@@ -96,7 +96,10 @@ func (a *ApiHost) ConvertAPIHostToNMHost(currentHost *Host) *Host {
 	h.Nodes = currentHost.Nodes
 	h.TrafficKeyPublic = currentHost.TrafficKeyPublic
 	h.OS = currentHost.OS
-
+	h.RelayedBy = a.RelayedBy
+	h.RelayedHosts = a.RelayedHosts
+	h.IsRelay = a.IsRelay
+	h.IsRelayed = a.IsRelayed
 	if len(a.LocalRange) > 0 {
 		_, localRange, err := net.ParseCIDR(a.LocalRange)
 		if err == nil {