[2.7] bpo-32185: Don't send IP in SNI TLS extension (GH-5865) (#5871)

The SSL module no longer sends IP addresses in SNI TLS extension on
platforms with OpenSSL 1.0.2+ or inet_pton.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit e9370a47389903bb72badc95032ec84a0ebbf8cc)

Co-authored-by: Christian Heimes <christian@python.org>
2 files changed