diff --git a/ztapi/member.go b/ztapi/member.go index 2d0e249..6d55cd5 100644 --- a/ztapi/member.go +++ b/ztapi/member.go @@ -3,6 +3,7 @@ package ztapi import ( + "encoding/json" "fmt" "net" "strconv" @@ -56,7 +57,7 @@ type Member struct { Ts int } Authorized bool - Capabilities []string + Capabilities []json.RawMessage CreationTime apiTime ID string Identity string @@ -68,7 +69,7 @@ type Member struct { Objtype string PhysicalAddr string Revision int - Tags []string + Tags []json.RawMessage VMajor int VMinor int VProto int diff --git a/ztapi/network.go b/ztapi/network.go index 97649e3..d0f712e 100644 --- a/ztapi/network.go +++ b/ztapi/network.go @@ -2,7 +2,10 @@ package ztapi -import "fmt" +import ( + "encoding/json" + "fmt" +) // GetNetworkInfo returns a Nework containing information about a ZeroTier network func GetNetworkInfo(API, host, networkID string) (*Network, error) { @@ -32,7 +35,7 @@ type Network struct { Config struct { ActiveMemberCount int AuthorizedMemberCount int - Capabilities []string + Capabilities []json.RawMessage Clock apiTime CreationTime apiTime EnableBroadcast bool @@ -57,7 +60,7 @@ type Network struct { Or bool Type string } - Tags []string + Tags []json.RawMessage TotalMemberCount int V4AssignMode struct { Zt bool @@ -79,6 +82,6 @@ type Network struct { } OnlineMemberCount int CapabilitesByName map[string]string - TagsByName map[string]string + TagsByName map[string]json.RawMessage CircuitTestEvery int }