Merge pull request #22 from Nimblr/fixTlsOptionsTypo
Fix TLS options typo, missing "s"
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ function client(options, callback) {
|
|||||||
'enqLinkTiming': 20000 // 20 sec
|
'enqLinkTiming': 20000 // 20 sec
|
||||||
}, options || {});
|
}, options || {});
|
||||||
|
|
||||||
if (options && options.tls && option.tls === true) {
|
if (options && options.tls && options.tls === true) {
|
||||||
sock = new tls.Socket();
|
sock = new tls.Socket();
|
||||||
} else {
|
} else {
|
||||||
sock = new net.Socket();
|
sock = new net.Socket();
|
||||||
|
|||||||
+1
-1
@@ -161,7 +161,7 @@ function server(options, callback) {
|
|||||||
'timeout': 40000 // 40 sec
|
'timeout': 40000 // 40 sec
|
||||||
}, options || {});
|
}, options || {});
|
||||||
|
|
||||||
if (options && options.tls && option.tls === true) {
|
if (options && options.tls && options.tls === true) {
|
||||||
tlsOrNet = tls;
|
tlsOrNet = tls;
|
||||||
} else {
|
} else {
|
||||||
tlsOrNet = net;
|
tlsOrNet = net;
|
||||||
|
|||||||
Reference in New Issue
Block a user