pufferffish / wireproxy

Wireguard client that exposes itself as a socks5 proxy
ISC License
4.11k stars 235 forks source link

make VirtualTun fields public #53

Closed 0ff closed 1 year ago

0ff commented 1 year ago

This allows embedding wireproxy's proxy methods into other projects, which is really really handy.

I've ported it to a version of https://github.com/slackhq/nebula because you already did all the hard work, only thing I needed was a way to instantiate the VirtualTun struct externally so I could then spawn your Routines on it.

Great work you did here 👍

caj-larsson commented 1 year ago

I was actually looking to do this myself, now I didn't trace through exactly all of the exports but what I would like to achieve for my project is to not replicate the config parser and instantiation of a wireguard Dailer and this seems to be the core of that need.

caj-larsson commented 1 year ago

Thanks! This was in fact sufficient for my needs too