mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
fix standard
This commit is contained in:
parent
8b8daa3d4a
commit
587b6e6395
@ -252,7 +252,7 @@ class Server extends EventEmitter {
|
|||||||
res.setHeader('Content-Type', 'application/json')
|
res.setHeader('Content-Type', 'application/json')
|
||||||
res.end(JSON.stringify(stats))
|
res.end(JSON.stringify(stats))
|
||||||
} else if (req.url === '/stats') {
|
} else if (req.url === '/stats') {
|
||||||
res.setHeader('Content-Type', 'text/html');
|
res.setHeader('Content-Type', 'text/html')
|
||||||
res.end(`
|
res.end(`
|
||||||
<h1>${stats.torrents} torrents (${stats.activeTorrents} active)</h1>
|
<h1>${stats.torrents} torrents (${stats.activeTorrents} active)</h1>
|
||||||
<h2>Connected Peers: ${stats.peersAll}</h2>
|
<h2>Connected Peers: ${stats.peersAll}</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user