mirror of
https://github.com/jetkvm/kvm.git
synced 2025-09-16 08:38:14 +00:00
refactor(ui): remove redundant DNS entry filtering from static IP configurations
This commit is contained in:
parent
9e09048f61
commit
47c47b0501
@ -151,18 +151,6 @@ export default function SettingsNetworkRoute() {
|
|||||||
|
|
||||||
// If custom domain option is selected, use the custom domain as value
|
// If custom domain option is selected, use the custom domain as value
|
||||||
domain: data.domain === "custom" ? customDomain : data.domain,
|
domain: data.domain === "custom" ? customDomain : data.domain,
|
||||||
ipv4_static: {
|
|
||||||
...data.ipv4_static,
|
|
||||||
|
|
||||||
// Remove empty DNS entries
|
|
||||||
dns: data.ipv4_static?.dns.filter((dns: string) => dns.trim() !== ""),
|
|
||||||
},
|
|
||||||
ipv6_static: {
|
|
||||||
...data.ipv6_static,
|
|
||||||
|
|
||||||
// Remove empty DNS entries
|
|
||||||
dns: data.ipv6_static?.dns.filter((dns: string) => dns.trim() !== ""),
|
|
||||||
},
|
|
||||||
} as NetworkSettings;
|
} as NetworkSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user