Add localhost to hosts file (#1240)

This commit is contained in:
Franck Nijhof 2019-08-18 11:07:23 +02:00 committed by Pascal Vizeli
parent 981f2b193c
commit be8439d4ac

View File

@ -222,6 +222,7 @@ class CoreDNS(JsonConfig, CoreSysAttributes):
def _init_hosts(self) -> None:
"""Import hosts entry."""
# Generate Default
self.add_host(IPv4Address("127.0.0.1"), ["localhost"], write=False)
self.add_host(
self.sys_docker.network.supervisor, ["hassio", "supervisor"], write=False
)