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 you add parameters to pass target host AND target port? #1

Open
realtebo opened this issue Nov 16, 2023 · 3 comments
Open

Can you add parameters to pass target host AND target port? #1

realtebo opened this issue Nov 16, 2023 · 3 comments

Comments

@realtebo
Copy link

realtebo commented Nov 16, 2023

We need a pool of forwarders.

Each one neews to forward to a different host and/or to a different port

Ho can we specifiy target port?

For example, we need to call local forwarder to

https://api.server-1.net:8081/v2/login

And another forwared for

http://api.server-2.net:8222/v2/login

[note, first server need https, the second needs http]

So we would like to start 2 fw-request , each one to a different port, ok, but each one to a single specific server and port

Anyway I tried and probably I misunderstood how to use your script

c:\laragon\www\fwd-request>SET TARGET=dp.api-server.net:8081

c:\laragon\www\fwd-request>SET PORT=8123

c:\laragon\www\fwd-request>node src/index.js
target dp.api-server.net:8081
[HPM] Proxy created: /  -> dp.api-server.net:8081
[HPM] Error occurred while proxying request 127.0.0.1:8123/v2/login to dp.api-server.net:8081 [ENOTFOUND] (https://nodejs.org/api/errors.html#errors_common_system_errors)

@johnb8005
Copy link
Contributor

@realtebo feel free to open a PR

@realtebo
Copy link
Author

It I could .. I would do.

@johnb8005
Copy link
Contributor

@realtebo i added you to the project :)

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

2 participants