OlafvdSpek / xbt

High-Performance BitTorrent Tracker
GNU General Public License v3.0
175 stars 67 forks source link

Pass doesn't work #79

Closed AngelOfFear closed 4 years ago

AngelOfFear commented 4 years ago

Sorry in my english (i'm from Russia).

OlafvdSpek commented 4 years ago

HEX(info_hash)

I don't think it should be hexed.. It's simplest to create the torrent_pass column and to generate 32-char passes, then you can skip the sha1 tricks.

or I must insert all my registered users?).

That's your job, XBT wouldn't known your users otherwise.

AngelOfFear commented 4 years ago

info_hash in my content_table has a binary(20) type, so I select HEX(info_hash). Because this page shows that it should be hex(40). And because it using in function pack('H*', ...), where H means hex. If I select binary info_hash, then pass equals 000000017dcf5533ae8e1a4433dada8b, and it still doesn't work. If I select binary info_hash and use instead of a function pack(), then pass equals 00000001a0a682b1095e566ed613690f as in the my first post. If I add torrent_pass char(32) column and paste 00000001a0a682b1095e566ed613690f and use udp://mydomain:2710/00000001a0a682b1095e566ed613690f/announce it still doesn't work. xbt_peers is still empty and xbt_user downloaded/uploaded stays at 0. And if I set anonymous_announce and anonymous_scrape to 0, I see "access denied" in the uTorrent.

OlafvdSpek commented 4 years ago

UDP doesn't support authentication, try http

AngelOfFear commented 4 years ago

Thanks! Over http works! You need to specify this information somewhere.