Skip to content
New issue

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

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

Already on GitHub? # to your account

Define port forwarding with command-line arguments #1

Closed
lolocohen opened this issue Mar 2, 2019 · 0 comments
Closed

Define port forwarding with command-line arguments #1

lolocohen opened this issue Mar 2, 2019 · 0 comments
Assignees
Labels
feature request suggestion for a new feature good first issue
Milestone

Comments

@lolocohen
Copy link
Owner

lolocohen commented Mar 2, 2019

What is your idea?

Currently the configuration of the port forwarding is done in a properties file, with entries of type forwarder4j.service.<local_port> = <host>:<port>

It would be nice to be able to also define entries through command line arguments, for instance:

java -cp ... org.forwarder4j.Forwarder <local_port1>=<host1>:<port1> ... <local_portN>=<hostN>:<portN>

Entries defined via command line arguments and in the ocnfig file would all be used, with those in the command line taking precedence in case of duplicate local port entries.

Incorrectly formatted entries would be discarded and a warning logged.

What are the expected benefits and drawbacks?

This will make scripting the tool much easier, and allow easier integration in automated processes.

Are you foreseeing any hurtles or drawbacks?

No

@lolocohen lolocohen added feature request suggestion for a new feature good first issue labels Mar 2, 2019
@lolocohen lolocohen self-assigned this Mar 2, 2019
lolocohen added a commit that referenced this issue Mar 2, 2019
lolocohen added a commit that referenced this issue Mar 2, 2019
@lolocohen lolocohen added this to the v0.3 milestone Mar 3, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature request suggestion for a new feature good first issue
Projects
None yet
Development

No branches or pull requests

1 participant