Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 511816 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), 835 bytes, created by
Xiami
on 2017-12-28 09:46:28 UTC
(
hide
)
Description:
[PATCH 2/2] selectors.py: use original url for https sites
Filename:
MIME Type:
Creator:
Xiami
Created:
2017-12-28 09:46:28 UTC
Size:
835 bytes
patch
obsolete
>From 5464420345f34ac668bec750b5bec38e6dade94d Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Thu, 28 Dec 2017 17:35:45 +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 | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py >index aee1b52..4621e67 100644 >--- a/mirrorselect/selectors.py >+++ b/mirrorselect/selectors.py >@@ -330,6 +330,10 @@ class Deep(object): > delta = 0 > f = None > >+ if url_parts.scheme == "https": >+ # ips don't work because the hostname must match the cert >+ ips = [url_parts.hostname] >+ > for ip in ips: > test_parts = url_parts._replace(netloc=ip) > test_url = url_unparse(test_parts) >-- >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