Explorar el Código

change struct type

abhishek9686 hace 6 meses
padre
commit
9652d77fd5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      models/structs.go

+ 2 - 2
models/structs.go

@@ -152,8 +152,8 @@ type ExtPeersResponse struct {
 }
 
 type EgressRangeMetric struct {
-	Network     net.IPNet `json:"network"`
-	RouteMetric net.IPNet `json:"route_metric"`
+	Network     string `json:"network"`
+	RouteMetric uint32 `json:"route_metric"` // preffered range 1-999
 }
 
 // EgressGatewayRequest - egress gateway request