commit | 1097c40ed0f36f44081d454dab7914673fb6ea07 | [log] [tgz] |
---|---|---|
author | Randy Abernethy <ra@apache.org> | Mon Feb 02 05:18:59 2015 -0800 |
committer | Randy Abernethy <ra@apache.org> | Mon Feb 02 05:18:59 2015 -0800 |
tree | a39f78c805709fa51dcf901bbf16db167cfab68a | |
parent | 4e1e132142f78cafa4e83526dd7a613833715cd3 [diff] |
THRIFT-2934: make node server options optional Client: Nodejs Patch: Randy Abernethy
diff --git a/lib/nodejs/lib/thrift/server.js b/lib/nodejs/lib/thrift/server.js index 5453bc8..8715f2c 100644 --- a/lib/nodejs/lib/thrift/server.js +++ b/lib/nodejs/lib/thrift/server.js
@@ -86,7 +86,7 @@ }); } - if (options.tls) { + if (options && options.tls) { return tls.createServer(options.tls, serverImpl); } else { return net.createServer(serverImpl);