diff options
author | Vincent Bernat <vincent@bernat.im> | 2016-05-17 15:55:12 +0200 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-05-17 06:55:12 -0700 |
commit | a7e9dfc405d5d1de60ce15bc6dad016d6418e3aa (patch) | |
tree | e4ddf849bd4a0b2bd97282d2b7822d4a6d8bf905 /kafka/errors.py | |
parent | 2c9930dea4a4537cf237ac7cc9db1f3970419b59 (diff) | |
download | kafka-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