файл конфигурации
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
const dgram = require('dgram');
|
||||
const server = dgram.createSocket("udp4")
|
||||
const config = require('../config');
|
||||
|
||||
const ACTION_CONNECT = 0
|
||||
const ACTION_ANNOUNCE = 1
|
||||
@ -117,7 +118,7 @@ server.on("listening", function () {
|
||||
console.log("listening udp tracker respose on " + address.address + ":" + address.port);
|
||||
});
|
||||
|
||||
server.bind(4446);
|
||||
server.bind(config.udpTrackersPort);
|
||||
|
||||
module.exports = getPeersStatistic;
|
||||
|
||||
|
Reference in New Issue
Block a user