Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/red-geckos-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"proxy": minor
---

Enable localAddress flag
18 changes: 9 additions & 9 deletions packages/proxy/src/bin/proxy.ts
Original file line number Diff line number Diff line change
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