mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Force reload of /etc/resolv.conf on WebSession init (#6000)
This commit is contained in:
parent
1f2bf77784
commit
5c90a00263
@ -124,7 +124,10 @@ class CoreSys:
|
|||||||
|
|
||||||
resolver: aiohttp.abc.AbstractResolver
|
resolver: aiohttp.abc.AbstractResolver
|
||||||
try:
|
try:
|
||||||
resolver = aiohttp.AsyncResolver(loop=self.loop)
|
# Use "unused" kwargs to force dedicated resolver instance. Otherwise
|
||||||
|
# aiodns won't reload /etc/resolv.conf which we need to make our connection
|
||||||
|
# check work in all cases.
|
||||||
|
resolver = aiohttp.AsyncResolver(loop=self.loop, timeout=None)
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Initializing ClientSession with AsyncResolver. Using nameservers %s",
|
"Initializing ClientSession with AsyncResolver. Using nameservers %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user