Comparing version 0.1.4 to 0.1.5
@@ -64,3 +64,3 @@ 'use strict'; | ||
use(Middlewares.error(serv))).listen(port, function () { | ||
console.warn('Doji UI Server run at http://127.0.0.1:%s%s', port, config.prefix); | ||
console.warn('Doji-UI is running at http://127.0.0.1:%s%s', port, config.prefix); | ||
}).on('ws', function (event, data, id) { | ||
@@ -67,0 +67,0 @@ // let client = this._clients[id]; |
{ | ||
"name": "doji-ui", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "", | ||
@@ -20,2 +20,3 @@ "rootdir": "./www/", | ||
"dependencies": { | ||
"ip": "~0.3.3", | ||
"less": "~2.5.1", | ||
@@ -22,0 +23,0 @@ "mime-types": "~2.1.1", |
@@ -7,4 +7,3 @@ 'use strict'; | ||
const url = require('url'); | ||
const dns = require('dns'); | ||
const os = require('os'); | ||
function _md5 (str) { | ||
@@ -157,7 +156,4 @@ return require('crypto').createHash('md5').update(str).digest('hex') | ||
serv.port = port || 80; | ||
dns.lookup(os.hostname(), function (err, add, family) { | ||
serv.address = add; | ||
serv.family = family; | ||
serv.listen.apply(serv, args); | ||
}); | ||
serv.address = require("ip").address(); | ||
serv.listen.apply(serv, args); | ||
this.server.on('connection', this.handle.bind(this)).on('error', function (e) { | ||
@@ -164,0 +160,0 @@ wss.emit('wss.error', e); |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
5
694543
5
16376