mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
fix: typo in ws example (#417)
This commit is contained in:
parent
74065c7b61
commit
023afb9a32
@ -244,7 +244,7 @@ server.on('listening', function () {
|
|||||||
console.log(`UDP tracker: udp://${udpHost}:${udpPort}`)
|
console.log(`UDP tracker: udp://${udpHost}:${udpPort}`)
|
||||||
|
|
||||||
// WS
|
// WS
|
||||||
const wsAddr = server.http.address()
|
const wsAddr = server.ws.address()
|
||||||
const wsHost = wsAddr.address !== '::' ? wsAddr.address : 'localhost'
|
const wsHost = wsAddr.address !== '::' ? wsAddr.address : 'localhost'
|
||||||
const wsPort = wsAddr.port
|
const wsPort = wsAddr.port
|
||||||
console.log(`WebSocket tracker: ws://${wsHost}:${wsPort}`)
|
console.log(`WebSocket tracker: ws://${wsHost}:${wsPort}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user