mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +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}`)
|
||||
|
||||
// WS
|
||||
const wsAddr = server.http.address()
|
||||
const wsAddr = server.ws.address()
|
||||
const wsHost = wsAddr.address !== '::' ? wsAddr.address : 'localhost'
|
||||
const wsPort = wsAddr.port
|
||||
console.log(`WebSocket tracker: ws://${wsHost}:${wsPort}`)
|
||||
|
Loading…
Reference in New Issue
Block a user