mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Fix custom DNS saving (#23477)
This commit is contained in:
parent
f1c360c550
commit
8e8fd89d56
@ -525,6 +525,9 @@ export class HassioNetwork extends LitElement {
|
|||||||
IP_VERSIONS.forEach((version) => {
|
IP_VERSIONS.forEach((version) => {
|
||||||
interfaceOptions[version] = {
|
interfaceOptions[version] = {
|
||||||
method: this._interface![version]?.method || "auto",
|
method: this._interface![version]?.method || "auto",
|
||||||
|
nameservers: this._interface![version]?.nameservers?.filter(
|
||||||
|
(ns: string) => ns.trim()
|
||||||
|
),
|
||||||
};
|
};
|
||||||
if (this._interface![version]?.method === "static") {
|
if (this._interface![version]?.method === "static") {
|
||||||
interfaceOptions[version] = {
|
interfaceOptions[version] = {
|
||||||
@ -533,9 +536,6 @@ export class HassioNetwork extends LitElement {
|
|||||||
(address: string) => address.trim()
|
(address: string) => address.trim()
|
||||||
),
|
),
|
||||||
gateway: this._interface![version]?.gateway,
|
gateway: this._interface![version]?.gateway,
|
||||||
nameservers: this._interface![version]?.nameservers?.filter(
|
|
||||||
(ns: string) => ns.trim()
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user