mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Bump dnspython from 2.4.2 to 2.6.1 (#2264)
* Bump dnspython from 2.4.2 to 2.6.1 Bumps [dnspython](https://github.com/rthalley/dnspython) from 2.4.2 to 2.6.1. - [Release notes](https://github.com/rthalley/dnspython/releases) - [Changelog](https://github.com/rthalley/dnspython/blob/main/doc/whatsnew.rst) - [Commits](https://github.com/rthalley/dnspython/compare/v2.4.2...v2.6.1) --- updated-dependencies: - dependency-name: dnspython dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update dnspython==2.6.1 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
aca7e72715
commit
cfefa928be
101 changed files with 1052 additions and 459 deletions
|
@ -1,5 +1,7 @@
|
|||
import sys
|
||||
|
||||
import dns._features
|
||||
|
||||
if sys.platform == "win32":
|
||||
from typing import Any
|
||||
|
||||
|
@ -15,14 +17,14 @@ if sys.platform == "win32":
|
|||
except KeyError:
|
||||
WindowsError = Exception
|
||||
|
||||
try:
|
||||
if dns._features.have("wmi"):
|
||||
import threading
|
||||
|
||||
import pythoncom # pylint: disable=import-error
|
||||
import wmi # pylint: disable=import-error
|
||||
|
||||
_have_wmi = True
|
||||
except Exception:
|
||||
else:
|
||||
_have_wmi = False
|
||||
|
||||
def _config_domain(domain):
|
||||
|
@ -51,9 +53,10 @@ if sys.platform == "win32":
|
|||
try:
|
||||
system = wmi.WMI()
|
||||
for interface in system.Win32_NetworkAdapterConfiguration():
|
||||
if interface.IPEnabled and interface.DNSDomain:
|
||||
self.info.domain = _config_domain(interface.DNSDomain)
|
||||
if interface.IPEnabled and interface.DNSServerSearchOrder:
|
||||
self.info.nameservers = list(interface.DNSServerSearchOrder)
|
||||
if interface.DNSDomain:
|
||||
self.info.domain = _config_domain(interface.DNSDomain)
|
||||
if interface.DNSDomainSuffixSearchOrder:
|
||||
self.info.search = [
|
||||
_config_domain(x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue