Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
1f63670a
Kaydet (Commit)
1f63670a
authored
Şub 18, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1426648: urllib proxy_bypass broken
üst
4caeff98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
urllib.py
Lib/urllib.py
+10
-3
No files found.
Lib/urllib.py
Dosyayı görüntüle @
1f63670a
...
...
@@ -1403,13 +1403,20 @@ elif os.name == 'nt':
if
not
proxyEnable
or
not
proxyOverride
:
return
0
# try to make a host list from name and IP address.
host
=
[
host
]
rawHost
,
port
=
splitport
(
host
)
host
=
[
rawHost
]
try
:
addr
=
socket
.
gethostbyname
(
host
[
0
]
)
if
addr
!=
h
ost
:
addr
=
socket
.
gethostbyname
(
rawHost
)
if
addr
!=
rawH
ost
:
host
.
append
(
addr
)
except
socket
.
error
:
pass
try
:
fqdn
=
socket
.
getfqdn
(
rawHost
)
if
fqdn
!=
rawHost
:
host
.
append
(
fqdn
)
except
socket
.
error
:
pass
# make a check value list from the registry entry: replace the
# '<local>' string by the localhost entry and the corresponding
# canonical entry.
...
...
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