Allow any number of DNS nameservers #19

Merged
Dreaded_X merged 2 commits from feature/dns into main 2026-04-17 19:43:08 +00:00
3 changed files with 4 additions and 1 deletions
Showing only changes of commit f7e4a2d545 - Show all commits
+1
View File
@@ -140,6 +140,7 @@
"array", "array",
"null" "null"
], ],
"default": null,
"items": { "items": {
"type": "string", "type": "string",
"format": "ipv4" "format": "ipv4"
+1
View File
@@ -136,6 +136,7 @@
"array", "array",
"null" "null"
], ],
"default": null,
"items": { "items": {
"type": "string", "type": "string",
"format": "ipv4" "format": "ipv4"
+2 -1
View File
@@ -53,7 +53,8 @@ struct Network {
ip: Ipv4Addr, ip: Ipv4Addr,
netmask: Ipv4Addr, netmask: Ipv4Addr,
gateway: Ipv4Addr, gateway: Ipv4Addr,
dns: Vec<Ipv4Addr>, #[serde(default)]
dns: Option<Vec<Ipv4Addr>>,
#[optional_rename(OptionalTailscale)] #[optional_rename(OptionalTailscale)]
#[optional_wrap] #[optional_wrap]
tailscale: Tailscale, tailscale: Tailscale,