mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
fix(NET-379): send host NAT type over api (#2423)
This commit is contained in:
parent
34c56d5ea1
commit
84617359fa
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue