Skip to content

Commit

Permalink
Fix custom DNS saving (#23477)
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze authored and bramkragten committed Dec 30, 2024
1 parent f1c360c commit 8e8fd89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/panels/config/network/supervisor-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand All @@ -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()
),
};
}
});
Expand Down

0 comments on commit 8e8fd89

Please sign in to comment.