diff --git a/bt/spider.js b/bt/spider.js index f02b4ad..c6e4754 100644 --- a/bt/spider.js +++ b/bt/spider.js @@ -196,7 +196,7 @@ class Spider extends Emiter { listen(port) { this.udp.bind(port) this.udp.on('listening', () => { - console.log(`Listen on ${this.udp.address().address}:${this.udp.address().port}`) + console.log(`Listen DHT protocol on ${this.udp.address().address}:${this.udp.address().port}`) }) this.udp.on('message', (data, addr) => { this.parse(data, addr) diff --git a/index.js b/index.js index 86e96ed..a994d32 100644 --- a/index.js +++ b/index.js @@ -25,6 +25,7 @@ const {torrentTypeDetect} = require('./src/content'); // Start server server.listen(config.httpPort); +console.log('Listening web server on', config.httpPort, 'port') let mysqlPool = mysql.createPool({ connectionLimit: config.mysql.connectionLimit,