Closed AngelOfFear closed 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.
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.
UDP doesn't support authentication, try http
Thanks! Over http works! You need to specify this information somewhere.
Sorry in my english (i'm from Russia).
If I set anonymous_announce and anonymous_scrape to 0 (by default), I see "access denied" in the uTorrent. If I set anonymous_announce and anonymous_scrape to 1, I see 1 leechers in the uTorrent and xbt_torrents. But xbt_peers is empty. And in xbt_user downloaded/uploaded stays at 0. If I created table xbt_announce_log (by the way in xbt_tracker.sql have ipv6 column, but in the source is a ipa) and set log_announce to 1, I see peer in xbt_announce_log where uid is 0. It seems to me pass doesn't work. Fix pleas.