kafka/conn: use original hostname for SSL checks (#682)
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.
mumrah/kafka-python,DataDog/kafka-python,dpkp/kafka-python,scrapinghub/kafka-python,dpkp/kafka-python,scrapinghub/kafka-python,ohmu/kafka-python,wikimedia/operations-debs-python-kafka,Aloomaio/kafka-python,mumrah/kafka-python,wikimedia/operations-debs-python-kafka,Aloomaio/kafka-python,ohmu/kafka-python,Yelp/kafka-python,Yelp/kafka-python