Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
43b0ea53
Kaydet (Commit)
43b0ea53
authored
Kas 24, 2015
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #841 from delfick/proxy_pool_manager_assert_hostname
Ensure assert_hostname is set on the pool connection
üst
1ca2bc58
da337777
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ssladapter.py
docker/ssladapter/ssladapter.py
+13
-0
No files found.
docker/ssladapter/ssladapter.py
Dosyayı görüntüle @
43b0ea53
...
@@ -46,6 +46,19 @@ class SSLAdapter(HTTPAdapter):
...
@@ -46,6 +46,19 @@ class SSLAdapter(HTTPAdapter):
self
.
poolmanager
=
PoolManager
(
**
kwargs
)
self
.
poolmanager
=
PoolManager
(
**
kwargs
)
def
get_connection
(
self
,
*
args
,
**
kwargs
):
"""
Ensure assert_hostname is set correctly on our pool
We already take care of a normal poolmanager via init_poolmanager
But we still need to take care of when there is a proxy poolmanager
"""
conn
=
super
(
SSLAdapter
,
self
)
.
get_connection
(
*
args
,
**
kwargs
)
if
conn
.
assert_hostname
!=
self
.
assert_hostname
:
conn
.
assert_hostname
=
self
.
assert_hostname
return
conn
def
can_override_ssl_version
(
self
):
def
can_override_ssl_version
(
self
):
urllib_ver
=
urllib3
.
__version__
.
split
(
'-'
)[
0
]
urllib_ver
=
urllib3
.
__version__
.
split
(
'-'
)[
0
]
if
urllib_ver
is
None
:
if
urllib_ver
is
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment