Skip to content

Commit

Permalink
default port for the socks5h scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszlitwin authored Oct 25, 2024
1 parent 4e0a17c commit 51c493e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions httpcore/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def origin(self) -> Origin:
b"ws": 80,
b"wss": 443,
b"socks5": 1080,
b"socks5h": 1080,
}[self.scheme]
return Origin(
scheme=self.scheme, host=self.host, port=self.port or default_port
Expand Down

0 comments on commit 51c493e

Please sign in to comment.