commit | 6bc422d2eb0a6b76aee479b08ed8b033938fd3d2 | [log] [tgz] |
---|---|---|
author | Jens Harbott <j.harbott@x-ion.de> | Wed Sep 27 10:29:34 2017 +0000 |
committer | Jens Harbott <j.harbott@x-ion.de> | Thu Nov 30 20:26:28 2017 +0000 |
tree | 926757d03cf69710f9dbad9e8788a4793c2be8ae | |
parent | 86a0b0deb7cb37c55680bf758f134355040db742 [diff] |
Add IPv6 support to create_websocket() The current implementation is hardcoded to use AF_INET, which means IPv4. We need to be able to support IPv6 connections, too, so we use the socket.getaddrinfo() function as described in [1] in order to provide a more generic solution. [1] https://docs.python.org/2/library/socket.html Change-Id: I2ccbe3b25e79031a3c961871034c0c1b94d7ee80 Closes-Bug: 1719575 Related-Bug: 1656329