Skip to content

Commit

Permalink
chore(proxy): deprecate old proxy flags (#595)
Browse files Browse the repository at this point in the history
remove proxy-external and proxy-internal flags.
Both has been relatively replaced by proxy-bright and proxy-target.

Co-authored-by: Or Rubin <or.rubin@hotmail.com>
  • Loading branch information
maksadbek and orubin authored Sep 5, 2024
1 parent ca9ec00 commit 2f9dd31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Commands/RunRepeater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export class RunRepeater implements CommandModule {
daemon: 'remove-daemon',
ntlm: [
'proxy',
'proxy-external',
'proxy-internal',
'proxy-bright',
'proxy-target',
'experimental-connection-reuse'
]
})
Expand Down
4 changes: 1 addition & 3 deletions src/Config/CliBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,17 @@ export class CliBuilder {
'Specify a proxy URL to route all traffic through. This should be an HTTP(S), SOCKS4, or SOCKS5 URL. By default, if you specify SOCKS://<URL>, then SOCKS5h is applied.'
})
.option('proxy-bright', {
alias: 'proxy-external',
requiresArg: true,
describe:
'Specify a proxy URL to route all outbound traffic through. For more information, see the --proxy option.'
})
.option('proxy-target', {
alias: 'proxy-internal',
requiresArg: true,
describe:
'Specify a proxy URL to route all inbound traffic through. For more information, see the --proxy option.'
})
.conflicts({
proxy: ['proxy-internal', 'proxy-external'],
proxy: ['proxy-bright', 'proxy-target'],
hostname: 'cluster'
})
.middleware((args: Arguments) => {
Expand Down

0 comments on commit 2f9dd31

Please sign in to comment.