Skip to content

Commit

Permalink
feat(repeater): rename --experimental-connection-reuse option to `-…
Browse files Browse the repository at this point in the history
…-ntlm` (#499)

The `experimental-connection-reuse` option has been deprecated; use the `--ntlm` option instead

closes #500
  • Loading branch information
mongoose79 authored Nov 21, 2023
1 parent 1d8ed3b commit f465d44
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Commands/RunRepeater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,14 @@ export class RunRepeater implements CommandModule {
}
})
.option('experimental-connection-reuse', {
deprecate: 'Use --ntlm instead',
boolean: true,
describe: 'Configure experimental support for TCP connections reuse'
})
.option('ntlm', {
boolean: true,
describe: 'Configure ntlm support (enables TCP connection reuse)'
})
.option('daemon', {
requiresArg: false,
alias: 'd',
Expand All @@ -141,6 +146,9 @@ export class RunRepeater implements CommandModule {
.conflicts('experimental-connection-reuse', 'proxy')
.conflicts('experimental-connection-reuse', 'proxy-external')
.conflicts('experimental-connection-reuse', 'proxy-internal')
.conflicts('ntlm', 'proxy')
.conflicts('ntlm', 'proxy-external')
.conflicts('ntlm', 'proxy-internal')
.conflicts('proxy-external', 'proxy')
.conflicts('proxy-internal', 'proxy')
.env('REPEATER')
Expand Down Expand Up @@ -171,7 +179,8 @@ export class RunRepeater implements CommandModule {
proxyUrl: (args.proxyInternal ?? args.proxy) as string,
certs: args.cert as Cert[],
maxContentLength: 100,
reuseConnection: !!args.experimentalConnectionReuse,
reuseConnection:
!!args.ntlm || !!args.experimentalConnectionReuse,
whitelistMimes: [
'text/html',
'text/plain',
Expand Down

0 comments on commit f465d44

Please sign in to comment.