отображение того что слушается

This commit is contained in:
Alexey Kasyanchuk
2017-08-20 18:23:11 +03:00
parent 719783646c
commit 8fd10b2bc2
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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,