Explorar el Código

add egressServices on host model

abhishek9686 hace 5 meses
padre
commit
db787a5d26
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      models/api_host.go
  2. 1 1
      models/host.go

+ 1 - 1
models/api_host.go

@@ -31,7 +31,7 @@ type ApiHost struct {
 	NatType             string              `json:"nat_type"              yaml:"nat_type"`
 	PersistentKeepalive int                 `json:"persistentkeepalive"   yaml:"persistentkeepalive"`
 	AutoUpdate          bool                `json:"autoupdate"              yaml:"autoupdate"`
-	EgressServices      map[string][]string `json:"egress_services"`
+	EgressServices      map[string][]net.IP `json:"egress_services"`
 }
 
 // ApiIface - the interface struct for API usage

+ 1 - 1
models/host.go

@@ -72,7 +72,7 @@ type Host struct {
 	NatType             string              `json:"nat_type,omitempty"      yaml:"nat_type,omitempty"`
 	TurnEndpoint        *netip.AddrPort     `json:"turn_endpoint,omitempty" yaml:"turn_endpoint,omitempty"`
 	PersistentKeepalive time.Duration       `json:"persistentkeepalive" swaggertype:"primitive,integer" format:"int64" yaml:"persistentkeepalive"`
-	EgressServices      map[string][]string `json:"egress_services"`
+	EgressServices      map[string][]net.IP `json:"egress_services"`
 }
 
 // FormatBool converts a boolean to a [yes|no] string