Skip to content

Conversation

@evgeniy-scherbina
Copy link
Collaborator

@evgeniy-scherbina evgeniy-scherbina commented Dec 19, 2025

Relates to #100

@evgeniy-scherbina evgeniy-scherbina changed the title Yevhenii/landjail feat: implementation of non-transparent proxy Dec 19, 2025
func (p *Server) processTunnelRequest(conn net.Conn, req *http.Request, targetHost string) {
// Check if request should be allowed
// Use the original request URL but evaluate against rules
urlStr := req.Host + req.URL.String()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

use req.URL.Path instead?

}

// forwardTunnelRequest forwards a request from the tunnel to the target
func (p *Server) forwardTunnelRequest(conn net.Conn, req *http.Request, targetHost string) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

reuse forwardRequest?

@evgeniy-scherbina evgeniy-scherbina marked this pull request as ready for review December 20, 2025 20:53
@evgeniy-scherbina evgeniy-scherbina merged commit db38e4b into main Dec 20, 2025
5 checks passed
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.

1 participant