[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

Antoine Pitrou report at bugs.python.org
Wed Dec 20 05:04:19 EST 2017


Antoine Pitrou <pitrou at free.fr> added the comment:

> There is no platform-compatible way to detect if a string is an IP address.

Actually, you could use the ipaddress module.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32185>
_______________________________________


More information about the Python-bugs-list mailing list