From 84617359fa15d9c9b56489c0cc6a919f9d77c9d9 Mon Sep 17 00:00:00 2001 From: Aceix Date: Wed, 28 Jun 2023 14:53:11 +0000 Subject: [PATCH] fix(NET-379): send host NAT type over api (#2423) --- models/api_host.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/api_host.go b/models/api_host.go index 70da8764..abf29555 100644 --- a/models/api_host.go +++ b/models/api_host.go @@ -34,6 +34,7 @@ type ApiHost struct { RelayedBy string `json:"relayed_by" bson:"relayed_by" yaml:"relayed_by"` IsRelay bool `json:"isrelay" bson:"isrelay" yaml:"isrelay"` RelayedHosts []string `json:"relay_hosts" bson:"relay_hosts" yaml:"relay_hosts"` + NatType string `json:"nat_type" yaml:"nat_type"` } // Host.ConvertNMHostToAPI - converts a Netmaker host to an API editable host @@ -67,6 +68,7 @@ func (h *Host) ConvertNMHostToAPI() *ApiHost { a.Verbosity = h.Verbosity a.Version = h.Version a.IsDefault = h.IsDefault + a.NatType = h.NatType return &a }