support tls fingerprint args in constructor #328
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hey nate! first off big thanks for this package. it has been incredibly valuable for project.
I'm wanting to include the tls ciphers list (and other, similar params) on the agent constructor:
(Btw, i am making
GET
s tohttps://check.ja3.zone/
to check if the fingerprint is changing, e.g. theciphers
declaration is effective)I found that the
ciphers
,honorCipherOrder
,secureProtocol
params don't make it to the basehttp.Agent
object, which is needed to have the effect I'm looking for. And, including the constructoropts
in thethis.options
seems to do the trick.I'll be honest, I don't deeply understand this code. I just know that this code diff has the affect i desire. Perhaps there are keys that should/should not be here???? Perhaps you want a blacklist or whitelist strategy? I see you have the
omit
function to remove things. I don't have a strong preference on this stuff, I just wantciphers
,honorCipherOrder
,secureProtocol
(andsecureOptions
) to be included inthis.options
.Thanks again! I hope this is helpful.