fix: actually check _tls

This commit is contained in:
Tyler Stewart
2017-06-20 14:47:44 -06:00
parent 63777c0d74
commit 176b2b7ca8

View File

@@ -94,7 +94,7 @@ class FtpServer {
}
setupTLS(_tls) {
if (!tls) return false;
if (!_tls) return false;
return _.assign({}, _tls, {
cert: _tls.cert ? fs.readFileSync(_tls.cert) : undefined,
key: _tls.key ? fs.readFileSync(_tls.key) : undefined,