Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 510028 Details for
Bug 639156
=app-portage/mirrorselect mirrorselect.selectors url_open'ed wrong URL and doesn't catch ssl.CertificateError exception
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH 2/2] selectors.py: use original url for https sites
0002-selectors.py-use-original-url-for-https-sites.patch (text/plain), 810 bytes, created by
Xiami
on 2017-12-14 10:57:30 UTC
(
hide
)
Description:
[PATCH 2/2] selectors.py: use original url for https sites
Filename:
MIME Type:
Creator:
Xiami
Created:
2017-12-14 10:57:30 UTC
Size:
810 bytes
patch
obsolete
>From f1b72a50c3822203d32e81661489b7d82475d08a Mon Sep 17 00:00:00 2001 >From: Xiami <i@f2light.com> >Date: Thu, 14 Dec 2017 18:32:48 +0800 >Subject: [PATCH 2/2] selectors.py: use original url for https sites > >Replacing host name with IP in URLs makes ssl cert name check failed. >--- > mirrorselect/selectors.py | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py >index aee1b52..cb730dc 100644 >--- a/mirrorselect/selectors.py >+++ b/mirrorselect/selectors.py >@@ -416,6 +416,9 @@ class Deep(object): > """ > early_out = False > f = None >+ # Unconditionally restore IP to server name because ssl verifies hostname >+ if url_parts.scheme == "https": >+ test_url = url_unparse(url_parts) > try: > try: > signal.alarm(self._connect_timeout) >-- >2.13.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 639156
:
510026
|
510028
|
511816