wireproxy icon indicating copy to clipboard operation
wireproxy copied to clipboard

can it run with command line

Open eve2ptp opened this issue 2 years ago • 5 comments

base some multithreading events, use subprocess with one line may avoid generating lots of config file. like ./wireproxy -privatekey <> -address <> -dns<> -publickey<> ...

eve2ptp avatar Feb 06 '23 15:02 eve2ptp

or use pipeline to read config

eve2ptp avatar Mar 13 '23 09:03 eve2ptp

the library to parse ini files doesn't seem to support stdin as a an input path

Mattwmaster58 avatar Apr 23 '23 01:04 Mattwmaster58

wireproxy -c <(echo "YOURCONFIGHERE")

oldwizard1010 avatar Apr 23 '23 11:04 oldwizard1010

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

mariuszste avatar May 23 '23 11:05 mariuszste

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!

ltrivaldi322 avatar Feb 29 '24 17:02 ltrivaldi322