diff options
Diffstat (limited to 'server/controllers/tracker.ts')
-rw-r--r-- | server/controllers/tracker.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts index 9bc7586d1..53f1653b5 100644 --- a/server/controllers/tracker.ts +++ b/server/controllers/tracker.ts | |||
@@ -59,7 +59,7 @@ const onHttpRequest = trackerServer.onHttpRequest.bind(trackerServer) | |||
59 | trackerRouter.get('/tracker/announce', (req, res) => onHttpRequest(req, res, { action: 'announce' })) | 59 | trackerRouter.get('/tracker/announce', (req, res) => onHttpRequest(req, res, { action: 'announce' })) |
60 | trackerRouter.get('/tracker/scrape', (req, res) => onHttpRequest(req, res, { action: 'scrape' })) | 60 | trackerRouter.get('/tracker/scrape', (req, res) => onHttpRequest(req, res, { action: 'scrape' })) |
61 | 61 | ||
62 | function createWebsocketServer (app: express.Application) { | 62 | function createWebsocketTrackerServer (app: express.Application) { |
63 | const server = http.createServer(app) | 63 | const server = http.createServer(app) |
64 | const wss = new WebSocketServer({ server: server, path: '/tracker/socket' }) | 64 | const wss = new WebSocketServer({ server: server, path: '/tracker/socket' }) |
65 | wss.on('connection', function (ws, req) { | 65 | wss.on('connection', function (ws, req) { |
@@ -76,7 +76,7 @@ function createWebsocketServer (app: express.Application) { | |||
76 | 76 | ||
77 | export { | 77 | export { |
78 | trackerRouter, | 78 | trackerRouter, |
79 | createWebsocketServer | 79 | createWebsocketTrackerServer |
80 | } | 80 | } |
81 | 81 | ||
82 | // --------------------------------------------------------------------------- | 82 | // --------------------------------------------------------------------------- |