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

Add configurations #26

Open
mrveera opened this issue Nov 6, 2019 · 2 comments
Open

Add configurations #26

mrveera opened this issue Nov 6, 2019 · 2 comments

Comments

@mrveera
Copy link

mrveera commented Nov 6, 2019

Issue by empijei
Monday Oct 02, 2017 at 09:36 GMT
Originally opened as empijei#17


Move all possible configurable parameters to config package

@mrveera
Copy link
Author

mrveera commented Nov 6, 2019

Comment by mmachado95
Monday Oct 02, 2017 at 22:08 GMT


Is anyone working on this?
Can I do it?

@mrveera
Copy link
Author

mrveera commented Nov 6, 2019

Comment by empijei
Tuesday Oct 03, 2017 at 07:45 GMT


No one that I know of is working on this.

The main point is that wapty will load a configuration on start.

The configuration is going to contain several recent projects.

A project currently is just a list of SaveLoadStringer and should be changed to a struct containing the current list of saveloadstringer and to also contain 2 more fields: a list of strings or ints(representing ports) for the proxy to listen on and a single port for the UI to listen on.

The first list of ports is going to be used here (in the future wapty will load more than just one proxy) and the UI port is going to be used here

The config package should export functions to get the the ports configured in the currently loaded project, which you can just write a stub for, that will, for now, just return the default values.

To achieve so please make the loaded project return default values if the ports are not set.

Please let me know if it is clear, if so I'm gonna flag this as "inprogress"

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

No branches or pull requests

1 participant