wapty icon indicating copy to clipboard operation
wapty copied to clipboard

Add configurations

Open empijei opened this issue 8 years ago • 2 comments

Move all possible configurable parameters to config package

empijei avatar Oct 02 '17 09:10 empijei

Is anyone working on this? Can I do it?

mmachado95 avatar Oct 02 '17 22:10 mmachado95

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"

empijei avatar Oct 03 '17 07:10 empijei