Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can it run with command line #57

Open
eve2ptp opened this issue Feb 6, 2023 · 5 comments
Open

can it run with command line #57

eve2ptp opened this issue Feb 6, 2023 · 5 comments

Comments

@eve2ptp
Copy link

eve2ptp commented Feb 6, 2023

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

@eve2ptp
Copy link
Author

eve2ptp commented Mar 13, 2023

or use pipeline to read config

@Mattwmaster58
Copy link

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

@oldwizard1010
Copy link

wireproxy -c <(echo "YOURCONFIGHERE")

@mariuszste
Copy link

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

@ltrivaldi322
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants