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

Enable localAddress #306

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/red-geckos-explain.md
@@ -0,0 +1,5 @@
---
"proxy": minor
---

Enable localAddress flag
18 changes: 9 additions & 9 deletions packages/proxy/src/bin/proxy.ts
Expand Up @@ -22,13 +22,13 @@ args.option(
'"authenticate" command to run when the "Proxy-Authorization" header is sent',
'',
String
)
.option(
'local-address',
'IP address of the network interface to send the outgoing requests through',
'',
String
);
//.option(
// 'local-address',
// 'IP address of the network interface to send the outgoing requests through',
// '',
// String
//);

const flags = args.parse(process.argv);
const { port, authenticate } = flags;
Expand All @@ -46,9 +46,9 @@ const proxy = createProxy();
* Proxy outgoing request localAddress parameter
*/

//if (flags.localAddress) {
// proxy.localAddress = flags.localAddress;
//}
if (flags.localAddress) {
proxy.localAddress = flags.localAddress;
}

/**
* Proxy authenticate function.
Expand Down