This commit is contained in:
Maximilian Hils 2023-03-09 16:48:26 +01:00 committed by GitHub
parent 2b10e3f3a7
commit 884fd60e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -349,7 +349,10 @@ class NextLayer:
elif starts_like_tls_record(data_client):
stack /= layers.ClientTLSLayer(context)
stack /= layers.HttpLayer(context, HTTPMode.regular)
if isinstance(context.layers[0], modes.HttpUpstreamProxy):
stack /= layers.HttpLayer(context, HTTPMode.upstream)
else:
stack /= layers.HttpLayer(context, HTTPMode.regular)
return stack[0]