heiher/hev-socks5-tunnel

Tun create callback

Closed this issue · 1 comments

I'm writing a bash script to do the tasks automatically
Here I have a small problem
I want to handle routing after tun created and since tun2socks is a blocking command I can't do it
In other variants of tun2socks like xjasonlyu/tun2socks we can pass a bash script via -tun-post-up and handle routing after tun created, how can we do the same thing here?

Fixed: 91a133d

Usage

tunnel:
  # Post up script (optional)
  post-up-script: up.sh
  # Pre down script (optional)
  pre-down-script: down.sh