diff options
| author | Jeff Principe <princjef@gmail.com> | 2017-10-16 21:23:29 -0700 |
|---|---|---|
| committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-02-10 14:15:57 +0100 |
| commit | 6007a9cc0e361d428123e4c0f74024c6cd7815f4 (patch) | |
| tree | 8aa2dd25795baa2d503cc89d9045ecdf7878a415 /lib/https.js | |
| parent | b8f47b27571f8d763f811f017be3fb37d466c4fc (diff) | |
| download | node-new-6007a9cc0e361d428123e4c0f74024c6cd7815f4.tar.gz | |
https: add extra options to Agent#getName()
Adds the remaining options from tls.createSecureContext() to the
string generated by Agent#getName(). This allows https.request() to
accept the options and generate unique sockets appropriately.
PR-URL: https://github.com/nodejs/node/pull/16402
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/https.js')
| -rw-r--r-- | lib/https.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/https.js b/lib/https.js index 741ce84d2f..84ddeb5036 100644 --- a/lib/https.js +++ b/lib/https.js @@ -194,6 +194,30 @@ Agent.prototype.getName = function getName(options) { if (options.secureProtocol) name += options.secureProtocol; + name += ':'; + if (options.crl) + name += options.crl; + + name += ':'; + if (options.honorCipherOrder !== undefined) + name += options.honorCipherOrder; + + name += ':'; + if (options.ecdhCurve) + name += options.ecdhCurve; + + name += ':'; + if (options.dhparam) + name += options.dhparam; + + name += ':'; + if (options.secureOptions !== undefined) + name += options.secureOptions; + + name += ':'; + if (options.sessionIdContext) + name += options.sessionIdContext; + return name; }; |
