Skip to content

url: use the socks type for socks proxy#21025

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/proxy-type
Closed

url: use the socks type for socks proxy#21025
bagder wants to merge 1 commit intomasterfrom
bagder/proxy-type

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Mar 20, 2026

Reported by Codex Security

@bagder bagder marked this pull request as ready for review March 20, 2026 10:22
@bagder bagder requested a review from Copilot March 20, 2026 10:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes proxy parsing in lib/url.c so that SOCKS proxy URLs are parsed using the SOCKS proxy type (rather than reusing the HTTP proxy type), ensuring the parsed proxy information is stored in the correct conn->socks_proxy fields.

Changes:

  • Pass conn->http_proxy.proxytype when parsing the regular proxy string.
  • Pass conn->socks_proxy.proxytype when parsing the SOCKS proxy string, instead of reusing the HTTP proxy type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Reported by Codex Security
@bagder bagder force-pushed the bagder/proxy-type branch from ea02aea to b83f1fb Compare March 20, 2026 10:47
@bagder bagder closed this in e3ed70c Mar 20, 2026
@bagder bagder deleted the bagder/proxy-type branch March 20, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants