Skip to content

Commit

Permalink
Enable localAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Mar 31, 2024
1 parent 010fdc3 commit 2b5f0b4
Showing 1 changed file with 9 additions and 9 deletions.
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

0 comments on commit 2b5f0b4

Please sign in to comment.