mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-16 21:03:09 +00:00
Add the insecure launching option to homebridge cli.
This commit is contained in:
@@ -19,11 +19,13 @@ module.exports = {
|
||||
Server: Server
|
||||
}
|
||||
|
||||
function Server() {
|
||||
function Server(insecureAccess) {
|
||||
this._api = new API(); // object we feed to Plugins
|
||||
this._plugins = this._loadPlugins(); // plugins[name] = Plugin instance
|
||||
this._config = this._loadConfig();
|
||||
this._bridge = this._createBridge();
|
||||
|
||||
this._allowInsecureAccess = insecureAccess || false;
|
||||
}
|
||||
|
||||
Server.prototype.run = function() {
|
||||
@@ -52,7 +54,7 @@ Server.prototype._publish = function() {
|
||||
port: bridgeConfig.port || 51826,
|
||||
pincode: bridgeConfig.pin || "031-45-154",
|
||||
category: Accessory.Categories.BRIDGE
|
||||
});
|
||||
}, this._allowInsecureAccess);
|
||||
|
||||
log.info("Homebridge is running on port %s.", bridgeConfig.port || 51826);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user