mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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) => {
|
||||
interfaceOptions[version] = {
|
||||
method: this._interface![version]?.method || "auto",
|
||||
nameservers: this._interface![version]?.nameservers?.filter(
|
||||
(ns: string) => ns.trim()
|
||||
),
|
||||
};
|
||||
if (this._interface![version]?.method === "static") {
|
||||
interfaceOptions[version] = {
|
||||
@ -533,9 +536,6 @@ export class HassioNetwork extends LitElement {
|
||||
(address: string) => address.trim()
|
||||
),
|
||||
gateway: this._interface![version]?.gateway,
|
||||
nameservers: this._interface![version]?.nameservers?.filter(
|
||||
(ns: string) => ns.trim()
|
||||
),
|
||||
};
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user