Open eve2ptp opened 1 year ago
or use pipeline to read config
the library to parse ini files doesn't seem to support stdin as a an input path
wireproxy -c <(echo "YOURCONFIGHERE")
the library to parse ini files doesn't seem to support stdin as a an input path
But we could just make wireproxy read stdin until EOF if -
is passed as the config path and pass it as string/bytes (I don't knwo go) to the parser
on linux cat test.conf | wireproxy -c /dev/stdin
seems to work fine
Any chance this could be done for Windows users? We can't use bash process substitution so if it doesn't read stdin until EOF there is nothing to do other than write out actual config files. Thanks!
base some multithreading events, use subprocess with one line may avoid generating lots of config file. like
./wireproxy -privatekey <> -address <> -dns<> -publickey<> ...