Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing DialTCP function #4

Open
elico opened this issue Oct 30, 2018 · 2 comments
Open

Missing DialTCP function #4

elico opened this issue Oct 30, 2018 · 2 comments

Comments

@elico
Copy link

elico commented Oct 30, 2018

There is no DialTCP function which can create arbitrary tproxy connections.
It can be used in HTTP proxies with a customized http.client .

@KatelynHaworth
Copy link
Owner

I assume you mean a plain old Dial(network, addr string) (net.Conn, error) or a DialContext(ctx context.Context, network, addr string) (net.Conn, error)?

@elico
Copy link
Author

elico commented Oct 30, 2018

@LiamHaworth more or less.
It should have both the source and destination addresses.
I wrote: https://github.com/elico/go-linux-tproxy/blob/master/go-linux-tproxy.go#L145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants