mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 00:56:29 +00:00
Add localhost to hosts file (#1240)
This commit is contained in:
parent
981f2b193c
commit
be8439d4ac
@ -222,6 +222,7 @@ class CoreDNS(JsonConfig, CoreSysAttributes):
|
|||||||
def _init_hosts(self) -> None:
|
def _init_hosts(self) -> None:
|
||||||
"""Import hosts entry."""
|
"""Import hosts entry."""
|
||||||
# Generate Default
|
# Generate Default
|
||||||
|
self.add_host(IPv4Address("127.0.0.1"), ["localhost"], write=False)
|
||||||
self.add_host(
|
self.add_host(
|
||||||
self.sys_docker.network.supervisor, ["hassio", "supervisor"], write=False
|
self.sys_docker.network.supervisor, ["hassio", "supervisor"], write=False
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user