inetaf / tcpproxy

Proxy TCP connections based on static rules, HTTP Host headers, and SNI server names (Go package or binary)

Home Page:https://pkg.go.dev/github.com/inetaf/tcpproxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proxy to an in memory net.Listener

kevinburke1 opened this issue · comments

I already have the *net.Listener in the same process as the TCP Proxy. It would be great if I could proxy directly to that instead of needing to Dial a separate IP address.

TargetListener gets me close to what I want but I need the Listener to handle TLS, unless I put my own Listener behind the TargetListener somehow (not sure how to do that)