chr15m / bugout

Back end web app services over WebRTC.
https://chr15m.github.io/bugout
MIT License
607 stars 59 forks source link

wss://tracker.btorrent.xyz/ is no longer available and is triggering AVG warnings #16

Closed draeder closed 4 years ago

draeder commented 4 years ago

The following error appears consistently in the logs when using the current minified API. The reason is because the developer no longer has the webtorrent tracker server online:

bugout.min.js:11 WebSocket connection to 'wss://tracker.btorrent.xyz/' failed: Error during WebSocket handshake: Unexpected response code: 522

Also, for users who have AVG Free installed (potentially other AV software), that URL is triggering a URL:Blacklist warning (see below screenshot).

Might I suggest updating the Readme and/or API documentation with some suggested webtorrent trackers that could be used with the announce field per #14 , and remove hard coded trackers from the API?

avg

chr15m commented 4 years ago

Good idea, thanks.

draeder commented 4 years ago

I just realized this may not be a bug in (only) your API code. I specified trackers to use and still got the warning about the dead one. So, I started playing around with webtorrent's API and I'm also getting the same console log errors in the browser, and my buddy is getting the AVG popup. It looks like this might be a bug in webtorrent, too.

chr15m commented 4 years ago

@draeder Bugout is supposed to pass through the trackers specified to WebTorrent:

https://github.com/chr15m/bugout/blob/master/index.js#L37-L38

chr15m commented 4 years ago

Here is where it passes the announce field through to WebTorrent's seed function: https://github.com/chr15m/bugout/blob/master/index.js#L77

draeder commented 4 years ago

@chr15m You're right -- that last observation was due to an oversight in my code. I forgot to pass the announce field in a 2nd bugout instance I was running, my apologies!

chr15m commented 4 years ago

@draeder all good, even so I think your suggestion regarding the documentation is a good one.

Tom12121212 commented 4 years ago

Im still getting the error from AVG anti Virus free from https://webtorrent.io/

Weve safely aborted connection on tracker.btorrent.xyz because it was infected with URL:blacklist

Did anyone get a work around? Will scare off my users. Is the error still there when you use the code on your own site?

Many thanks in advance

draeder commented 4 years ago

@vrboy Use the answer in #14 to pass your own trackers.

Tom12121212 commented 4 years ago

Many many thanks for finding that link for me Draeder. I'm not an advanced coder and new to P2P code. Two quick questions please.

  1. Do you recommend using another tracker. I am not sure which one to use?
  2. It seems I need to alter the index.js file from looking above. Is that a file I download edit then upload to my server and put the index.js into the route next to index.html?

If you can suggest how to alter it would be much appreciated.

This is the part I have to edit only I presume? this.announce = opts.announce || ["wss://hub.bugout.link", "wss://tracker.openwebtorrent.com", "wss://tracker.btorrent.xyz"]; this.wt = opts.wt || new WebTorrent({tracker: trackeropts});

I am trying to become a commercial customer if I can get this working. Happy to pay for a fix if needed.

Many many thanks in advance

chr15m commented 4 years ago

@vrboy When you instantiate your Bugout object you pass in the announce argument:

var b = Bugout(identifier_or_room_name, {"announce": ["https://YOUR-TRACKER-HERE..."]});

There are only a few trackers out there and if none of them work you have to run your own. This is a bad situation and it is why I am working on this: https://github.com/chr15m/webrtc-signaling-mesh

Stay tuned.

Tom12121212 commented 4 years ago

Thx for the message chr15m, I need a tracker in the next few days to launch. Any idea when will be ready please?

Two more questions guys

  1. I saw a list of torrents on this page https://www.axlcash.com/category/random-babbling Including wss://tracker.webtorrent.io

Is the webtorrent tracker a good one to use? Any feedback out there appreciated.

  1. If anyone can please help this newb once I have edited index.js what do I do with it and where do I put it. Sorry for the dumb question in advance!!

Just to confirm btorrent.xyz is definitely causing the problem. Just opening a web browser and typing in btorrent.xyz sets off my anti virus

chr15m commented 4 years ago

@vrboy you shouldn't have to edit index.js (if you mean the file that ships with Bugout) - see the code snippet I posted above. The webtorrent tracker is already included in the set that Bugout uses by default.

Tom12121212 commented 4 years ago

If anyone has an upwork account I would gladly pay for them to work on this problem for me...

Thx for the reply chr15m.

The index.js Listed on this page https://github.com/webtorrent/webtorrent#usage

is only place I can see in the code that has this line that refers to the "Virus" btorrent.xyz (as deemed by AVG and others)

this.announce = opts.announce || ["wss://hub.bugout.link", "wss://tracker.openwebtorrent.com", "wss://tracker.btorrent.xyz"];

In idiot programming terms can you tell me how do I get rid of any mention or connection to btorrent.xyz so that the code wont start a virus warning in Chrome.

In other words how do I use these two trackers that work without virus warnings on my site wss://tracker.novage.com.ua wss://tracker.openwebtorrent.com

Tested here http://novage.com.ua/p2p-media-loader/demo.html

Many Many thanks in advance

draeder commented 4 years ago

@vrboy I think you might be confusing the webtorrent api with the bugout api.

chr15m commented 4 years ago

@draeder I've pushed an update to the docs to try to clarify the issue of specifying trackers. Let me know if you get a chance to look and comment: https://github.com/chr15m/bugout/blob/master/docs/API.md#using-your-own-signaling-servers