Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up.add(torrentUrl) erronously adds the local client port #768
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you share a complete code example? |
This comment has been minimized.
This comment has been minimized.
|
I'm using webpack-dev-server, which is serving my files on port 3000. For my webpack config, I added import WebTorrent from 'webtorrent'
const client = new WebTorrent()
client.on('torrent', function (torrent) {
console.log('A new torrent has been added:', torrent)
})
client.add('http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso.torrent') |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
This is a bug in webpack should switch to use |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
While testing my app, I am running from http://localhost:3000 . To test, I added
http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso.torrentas the torrent url with no extra options. After it's added, I get an error saying the torrenthttp://releases.ubuntu.com:3000/16.04/ubuntu-16.04-desktop-amd64.iso.torrentcouldn't be added. Why is port 3000 being added?