отображение того что слушается
This commit is contained in:
@ -196,7 +196,7 @@ class Spider extends Emiter {
|
|||||||
listen(port) {
|
listen(port) {
|
||||||
this.udp.bind(port)
|
this.udp.bind(port)
|
||||||
this.udp.on('listening', () => {
|
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.udp.on('message', (data, addr) => {
|
||||||
this.parse(data, addr)
|
this.parse(data, addr)
|
||||||
|
1
index.js
1
index.js
@ -25,6 +25,7 @@ const {torrentTypeDetect} = require('./src/content');
|
|||||||
|
|
||||||
// Start server
|
// Start server
|
||||||
server.listen(config.httpPort);
|
server.listen(config.httpPort);
|
||||||
|
console.log('Listening web server on', config.httpPort, 'port')
|
||||||
|
|
||||||
let mysqlPool = mysql.createPool({
|
let mysqlPool = mysql.createPool({
|
||||||
connectionLimit: config.mysql.connectionLimit,
|
connectionLimit: config.mysql.connectionLimit,
|
||||||
|
Reference in New Issue
Block a user