summaryrefslogtreecommitdiff
path: root/kafka/errors.py
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.im>2016-05-17 15:55:12 +0200
committerDana Powers <dana.powers@gmail.com>2016-05-17 06:55:12 -0700
commita7e9dfc405d5d1de60ce15bc6dad016d6418e3aa (patch)
treee4ddf849bd4a0b2bd97282d2b7822d4a6d8bf905 /kafka/errors.py
parent2c9930dea4a4537cf237ac7cc9db1f3970419b59 (diff)
downloadkafka-python-a7e9dfc405d5d1de60ce15bc6dad016d6418e3aa.tar.gz
kafka/conn: use original hostname for SSL checks (#682)
When the address family is not provided, `self.host` is resolved to one of the IP addresses and replaced by it. The SSL context is then built using `self.host` which is now an IP instead of the proper name. Most of the time, hostname cannot be checked this way. Therefore, save the original hostname in a dedicated property and use this property for the SSL context.
Diffstat (limited to 'kafka/errors.py')
0 files changed, 0 insertions, 0 deletions