From 7142ff0fa389ab503ed7526fb4a4cbe2bb719a19 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 17 Apr 2026 20:59:42 +0200 Subject: [PATCH] feat: Allow more than two dns entries --- schemas/cluster.json | 4 +--- schemas/node.json | 4 +--- src/node.rs | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) 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,