From 2903d599c7ebf85d1f942fb9a7155639a4a0d074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Schrijver?= Date: Mon, 12 Sep 2016 13:56:44 +0200 Subject: [PATCH] upip: Initialize socket with protocol family as gotten from resolver. Fixes working over IPv6. --- upip/upip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upip/upip.py b/upip/upip.py index 2786bd41..b0483b8e 100644 --- a/upip/upip.py +++ b/upip/upip.py @@ -120,7 +120,7 @@ try: #print("Address infos:", ai) addr = ai[0][4] - s = usocket.socket() + s = usocket.socket(ai[0][0]) #print("Connect address:", addr) s.connect(addr)