Skip to content

Commit 5ab62ff

Browse files
committed
Fix TLS passthrough admin API backward compat
1 parent 34bd799 commit 5ab62ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/client/mockttp-admin-request-builder.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,11 @@ export class MockttpAdminRequestBuilder {
370370
${this.schema.typeHasField('TlsPassthroughEvent', 'destination')
371371
? 'destination { hostname, port }'
372372
: `
373-
upstreamHost
373+
hostname
374374
upstreamPort
375375
`
376376
}
377377
378-
hostname
379378
remoteIpAddress
380379
remotePort
381380
tags
@@ -390,12 +389,11 @@ export class MockttpAdminRequestBuilder {
390389
${this.schema.typeHasField('TlsPassthroughEvent', 'destination')
391390
? 'destination { hostname, port }'
392391
: `
393-
upstreamHost
392+
hostname
394393
upstreamPort
395394
`
396395
}
397396
398-
hostname
399397
remoteIpAddress
400398
remotePort
401399
tags

0 commit comments

Comments
 (0)