From 2b5f0b4c0eb0d79d61e639ee16aadca2d3b0099d Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Sun, 31 Mar 2024 12:59:39 -0700 Subject: [PATCH 1/2] Enable localAddress --- packages/proxy/src/bin/proxy.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/proxy/src/bin/proxy.ts b/packages/proxy/src/bin/proxy.ts index 69887e89..ad9a82e6 100755 --- a/packages/proxy/src/bin/proxy.ts +++ b/packages/proxy/src/bin/proxy.ts @@ -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; @@ -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. From 8c4833d9d641cea233b51100c8ce1238f21271dd Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Sun, 31 Mar 2024 13:01:07 -0700 Subject: [PATCH 2/2] Create red-geckos-explain.md --- .changeset/red-geckos-explain.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/red-geckos-explain.md diff --git a/.changeset/red-geckos-explain.md b/.changeset/red-geckos-explain.md new file mode 100644 index 00000000..e9bf2eb9 --- /dev/null +++ b/.changeset/red-geckos-explain.md @@ -0,0 +1,5 @@ +--- +"proxy": minor +--- + +Enable localAddress flag