heiher / hev-socks5-tunnel

A high-performance tun2socks for Linux/Android/FreeBSD/macOS/iOS/WSL2 (IPv4/IPv6/TCP/UDP)
MIT License
635 stars 130 forks source link

Add option to init config from string #111

Closed pronebird closed 2 months ago

pronebird commented 3 months ago

Hi,

First of all thank you for writing that beautiful piece of software.

This PR adds ability to provide a config via byte array, right now I am simply passing utf8 string from Rust and that seems to work just fine.

I am not entirely sure that the formal way to add support for that is to add more args to main() so feel free to refine that PR if you find it useful.