diff --git a/schemas/cluster.json b/schemas/cluster.json index 04a6139..43ee75d 100644 --- a/schemas/cluster.json +++ b/schemas/cluster.json @@ -143,9 +143,7 @@ "items": { "type": "string", "format": "ipv4" - }, - "maxItems": 2, - "minItems": 2 + } }, "gateway": { "type": [ diff --git a/schemas/node.json b/schemas/node.json index de7cc98..3cda037 100644 --- a/schemas/node.json +++ b/schemas/node.json @@ -139,9 +139,7 @@ "items": { "type": "string", "format": "ipv4" - }, - "maxItems": 2, - "minItems": 2 + } }, "gateway": { "type": [ diff --git a/src/node.rs b/src/node.rs index 314ce14..5dbce8c 100644 --- a/src/node.rs +++ b/src/node.rs @@ -53,7 +53,7 @@ struct Network { ip: Ipv4Addr, netmask: Ipv4Addr, gateway: Ipv4Addr, - dns: [Ipv4Addr; 2], + dns: Vec, #[optional_rename(OptionalTailscale)] #[optional_wrap] tailscale: Tailscale,