Skip to content

Add proxy support - #152

Open
Max-Sum wants to merge 1 commit into
bolkedebruin:masterfrom
Max-Sum:master
Open

Max-Sum wants to merge 1 commit into
bolkedebruin:masterfrom
Max-Sum:master

Conversation

@Max-Sum

@Max-Sum Max-Sum commented Jul 22, 2025

Copy link
Copy Markdown

Allow connecting to hosts behind a SOCKS5 or HTTP/HTTPS proxy.
Usage: setting environment variable all_proxy or ALL_PROXY

@bolkedebruin

Copy link
Copy Markdown
Owner

Is it possible to have a test ?

@Max-Sum

Max-Sum commented Jul 23, 2025

Copy link
Copy Markdown
Author

Do you mean a code test or a real-world test?
I have built a docker image and it's running on my server now.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds outbound proxy support for connecting to target RDP hosts via ALL_PROXY / all_proxy (SOCKS5 and HTTP/HTTPS CONNECT) within the rdpgw protocol processing path.

Changes:

  • Add golang.org/x/net/proxy and go.connect-proxy-scheme, registering http/https dialer types.
  • Switch RDP target connection establishment from net.DialTimeout to proxy-aware dialing.
  • Update module dependencies to include new direct and transitive requirements.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
go.mod Adds proxy-related modules and updates indirect dependencies required by the new proxy dialer support.
cmd/rdpgw/protocol/process.go Registers HTTP/HTTPS CONNECT proxy dialers and uses proxy-aware dialing for target connections.

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

Comment thread cmd/rdpgw/protocol/process.go Resolved
Comment thread cmd/rdpgw/protocol/process.go Resolved
Comment thread cmd/rdpgw/protocol/process.go Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants