summaryrefslogtreecommitdiff
path: root/docs/index.rst
diff options
context:
space:
mode:
authorDaniel Roschka <danielroschka@phoenitydawn.de>2022-07-29 12:04:01 +0200
committerDaniel Roschka <danielroschka@phoenitydawn.de>2022-07-31 13:15:25 +0200
commitd43c83800e51c2455b5070a1ccaca56b57fb1575 (patch)
treefdf72a437d1bfeedba9af549ee7ff49b66266d93 /docs/index.rst
parent1f47acaec13f30832fcfb56fc45843e90ad27673 (diff)
downloadslixmpp-d43c83800e51c2455b5070a1ccaca56b57fb1575.tar.gz
slixmpp-d43c83800e51c2455b5070a1ccaca56b57fb1575.tar.bz2
slixmpp-d43c83800e51c2455b5070a1ccaca56b57fb1575.tar.xz
slixmpp-d43c83800e51c2455b5070a1ccaca56b57fb1575.zip
Use gethostbyname when using aiodns
Slixmpp behaves differently when resolving host names, whether aiodns is used or not. With aiodns only DNS is used, while without `asyncio.loop.getaddrinfo()` is used instead, which utilizes the Name Service Switch (NSS) to resolve host names by other means (hosts-file, mDNS, ...) as well. To unify the behavior, this replaces the use of `aiodns.DNSResolver().query()` with `aiodns.DNSResolver().gethostbyname()`. This makes the behavior resolving host names more consistent between using aiodns or not, as both now honor the NSS configuration and removes the need for the previously existing workaround to resolve localhost.
Diffstat (limited to 'docs/index.rst')
0 files changed, 0 insertions, 0 deletions