Add the node setting tlsConfigDisableLocalFiles for tls node. (#1190)

* Add the node setting tlsConfigDisableLocalFiles for tls node.

* Fix the bug that shows node setting when specified in settings.js and exportable is false.
This commit is contained in:
Kazuki-Nakanishi
2017-03-09 19:58:34 +00:00
committed by Nick O'Leary
parent 34089aec70
commit 3b3d696e45
3 changed files with 17 additions and 6 deletions

View File

@@ -48,7 +48,14 @@ module.exports = function(RED) {
return;
}
}
RED.nodes.registerType("tls-config",TLSConfig);
RED.nodes.registerType("tls-config",TLSConfig,{
settings: {
tlsConfigDisableLocalFiles: {
value: true,
exportable: false
}
}
});
TLSConfig.prototype.addTLSOptions = function(opts) {
if (this.valid) {