Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(repeater): rename experimental-connection-reuse to ntlm #499

Merged
merged 10 commits into from
Nov 21, 2023
Merged
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', {
denis-maiorov-brightsec marked this conversation as resolved.
Show resolved Hide resolved
deprecate: 'Use --ntlm instead',
boolean: true,
describe: 'Configure experimental support for TCP connections reuse'
derevnjuk marked this conversation as resolved.
Show resolved Hide resolved
})
.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