Implement WebSocket proxying#150
Merged
Merged
Conversation
Replace the stub that rejected WebSocket connections with a proper TCP tunnel implementation. The proxy now hijacks the client connection, forwards the HTTP upgrade request to the upstream server, and bridges bidirectional data flow. This supports ws:// connections through the forward proxy. wss:// connections were already handled transparently by the existing CONNECT tunnel.
🚀 PR Build ArtifactsTest binaries have been built for this PR (commit a169ff7). Available Binaries:
Download Instructions:
Quick Test (Linux/macOS):chmod +x gatesentry-*
./gatesentry-linux-amd64Quick Test (Windows):.\gatesentry-windows-amd64.exe📝 Binaries are kept for 30 days and automatically deleted afterwards. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #150 +/- ##
=======================================
Coverage 19.19% 19.19%
=======================================
Files 70 70
Lines 4152 4152
=======================================
Hits 797 797
Misses 3310 3310
Partials 45 45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the WebSocket stub (which returned an error) with a proper TCP tunnel implementation.