From 0b9aeb01006e184304a7c670efe3640a2b4105cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 5 Apr 2019 21:44:35 +0200 Subject: [PATCH] Windows: Fix version comparison Fixes #9643 --- gajim/common/socks5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/common/socks5.py b/gajim/common/socks5.py index 9cea47389..ea9402dae 100644 --- a/gajim/common/socks5.py +++ b/gajim/common/socks5.py @@ -1436,7 +1436,7 @@ class Socks5Listener(IdleObject): # Under windows Vista, we need that to listen on ipv6 AND ipv4 # Doesn't work under windows XP if os.name == 'nt': - if int(platform.win32_ver()[0]) >= 6: # Win Vista + + if sys.getwindowsversion().major >= 6: # Win Vista + # 47 is socket.IPPROTO_IPV6 # 27 is socket.IPV6_V6ONLY under windows, but not defined ... self._serv.setsockopt(41, 27, 0)