Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ipv6 support for proxy#7090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
vasiliyk wants to merge9 commits intoscrapy:master
base:master
Choose a base branch
Loading
fromvasiliyk:ipv6_proxy_support
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Git commit prehook fix
Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
  • Loading branch information
@vasiliyk
vasiliyk committedOct 28, 2025
commita8d6cb0d43d0c9ca644116e994f7776500f097cf
6 changes: 4 additions & 2 deletionsscrapy/core/downloader/handlers/http11.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@
from contextlib import suppress
from io import BytesIO
from time import time
from typing import TYPE_CHECKING, Any,Callable,TypedDict, TypeVar, cast
from typing import TYPE_CHECKING, Any, TypedDict, TypeVar, cast
from urllib.parse import urldefrag, urlparse

from twisted.internet import ssl
Expand DownExpand Up@@ -41,6 +41,8 @@
from scrapy.utils.url import add_http_if_no_scheme

if TYPE_CHECKING:
from typing import Callable

from twisted.internet.base import ReactorBase
from twisted.internet.interfaces import IConsumer

Expand DownExpand Up@@ -359,7 +361,7 @@ def __init__(
def _getEndpoint(
self, uri: URI
) -> TunnelingTCP4ClientEndpoint | TunnelingTCP6ClientEndpoint:
proxyHost,proxyPort, proxyAuthHeader = self._proxyConf
proxyHost,_, _ = self._proxyConf
if is_ipv6(proxyHost):
return TunnelingTCP6ClientEndpoint(
reactor=self._reactor,
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp