Skip to content

Commit c3707c4

Browse files
authored
Merge pull request #70 from DrDaveD/fix-getaddrinfo-usage
Fix usage of getaddrinfo
2 parents 1fb07c1 + e4d7874 commit c3707c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

htgettoken

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class CertValidatingHTTPSConnection(http_client.HTTPConnection):
266266
else:
267267
firsttry = True
268268
try:
269-
info = socket.getaddrinfo(self.host, 0, 0, socket.IPPROTO_TCP)
269+
info = socket.getaddrinfo(self.host, 0, 0, 0, socket.IPPROTO_TCP)
270270
except Exception as e:
271271
efatal("getting address info for %s failed" % self.host, e)
272272

htgettoken.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ rm -rf $RPM_BUILD_ROOT
124124

125125

126126
%changelog
127-
# - Make --showbearerurl work properly in combination with --nobearertoken
127+
# - Fix the usage of getaddrinfo, which caused a fatal error on python3.9
128+
# on Mac.
129+
# - Make --showbearerurl work properly in combination with --nobearertoken.
128130
# - Change the httokendecode error message for a missing token file to
129131
# stderr instead of stdin.
130132

0 commit comments

Comments
 (0)