Skip to content

Commit d95d402

Browse files
petar-ivalexpenev-s
authored andcommitted
Add support for servername option (#113)
1 parent 58be327 commit d95d402

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/protocol/ConnectionManagerState.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
module.exports = ConnectionManagerState;
1717

18-
var ENCRYPTION_OPTIONS = ['pfx', 'key', 'cert', 'ca', 'passphrase', 'rejectUnauthorized', 'secureProtocol', 'checkServerIdentity'];
18+
var ENCRYPTION_OPTIONS = ['pfx', 'key', 'cert', 'ca', 'passphrase', 'rejectUnauthorized', 'secureProtocol', 'checkServerIdentity', 'servername'];
1919
var CONNECT_OPTIONS = ['user', 'password', 'assertion', 'sessionCookie'];
2020
var MULTIDB_OPTIONS = ['databaseName', 'instanceNumber'];
2121

test/lib.ConnectionManagerState.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('Lib', function () {
175175

176176
it('should set the encryption options properly', function () {
177177
var correspondingProperty = 'encryption';
178-
var optionsList = ['pfx', 'key', 'cert', 'ca', 'passphrase', 'rejectUnauthorized', 'secureProtocol', 'checkServerIdentity'];
178+
var optionsList = ['pfx', 'key', 'cert', 'ca', 'passphrase', 'rejectUnauthorized', 'secureProtocol', 'checkServerIdentity', 'servername'];
179179
var returnedValue = { ca: 'CA certificate' };
180180
var whichCall = 1;
181181

0 commit comments

Comments
 (0)