Skip to content

Commit 0e79adf

Browse files
authored
Merge pull request moscajs#760 from leeabc/master
support tls secureProtocol option
2 parents 9686ce8 + 8c7cc4a commit 0e79adf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/options.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ function modernize(legacy) {
106106
if (legacy.secure.hasOwnProperty('certPath')) {
107107
modernized.credentials.certPath = legacy.secure.certPath;
108108
}
109+
if (legacy.secure.hasOwnProperty('secureProtocol')) {
110+
modernized.credentials.secureProtocol = legacy.secure.secureProtocol;
111+
}
109112
} // else no credentials were provided
110113

111114
// construct `interfaces`

0 commit comments

Comments
 (0)