Commit Graph

111 Commits

Author SHA1 Message Date
Maxime THIEBAUT f9dde8240f Add announce_port support 2024-11-09 10:20:19 +01:00
arvidn 06f98369cb fix issue in retrying trackers in tiers > 0 2023-02-27 20:22:38 +01:00
ntfs.hard a58400b3fb Clarify printf argument flags 2022-10-22 22:15:28 +02:00
arvidn 8786d17e59 fix trackers being stuck after session pause/resume 2022-09-24 16:17:12 +02:00
arvidn 9c04d24504 merged RC_1_2 into RC_2_0 2022-03-06 22:11:02 +01:00
arvidn d102b9c70c Send a User-Agent field in HTTP tracker requests in anonymous mode. It appears some trackers require this field and will fail with 'Forbidden' otherwise. 2022-03-06 16:41:38 +01:00
arvidn f19669f41e merge RC_1_2 into RC_2_0 2020-12-17 02:44:34 +01:00
arvidn b2509280b1 mitigate a class of tracker SSRF where tracker URLs come preloaded with bittorrent tracker query string arguments, like info_hash, event, etc. 2020-12-13 03:36:40 +01:00
arvidn f726d10891 merged RC_1_2 into RC_2_0 2020-12-03 02:55:59 +01:00
arvidn 0ad0f29ab9 extend SSRF mitigation to also cover web seeds 2020-12-01 14:10:42 +01:00
arvidn dc6e505410 simplify test for tracker SSRF mitigation 2020-12-01 14:10:42 +01:00
arvidn c908c1026d add option to disallow IDNA tracker and web seed hostnames, and disallow them by default 2020-12-01 02:35:26 +01:00
arvidn 9dbfdc1a2f merged RC_1_2 into RC_2_0 2020-12-01 01:47:05 +01:00
arvidn 0106706d91 introduce mitigation for Server Side Request Forgery in tracker announces 2020-11-29 02:27:33 +01:00
arvidn f3ed9a9956 merged RC_1_2 into RC_2_0 2020-10-21 11:57:50 +02:00
arvidn 9e71d1a5c2 copy torrent_info objects when added to a session. This is because the internal torrent object (unfortunately) keeps and mutates states in the torrent_info object. If it would use the same object as passed in by the client, that state would be subject to race conditions 2020-10-20 16:29:34 +02:00
arvidn e2a4bdc7fb merged RC_1_2 into RC_2_0 2020-09-18 11:36:00 +02:00
Arvid Norberg bc38d29280 fix issue in URL parser, causing issues with certain tracker URLs 2020-09-12 09:00:28 -07:00
arvidn 32975be1d0 restore add_torrent_params::info_hash and use add_torrent_params::info_hashes for the new v1 and v2 type 2020-08-16 08:27:20 -07:00
Arvid Norberg 62f9a0ed74 make create_torrent fail rather than produce invalid torrents. By default, create a torrent corresponding to which hashes were set 2020-06-10 02:49:03 -07:00
arvidn 5cbdfa2557 merged RC_1_2 into master 2020-05-13 14:28:23 +02:00
arvidn 232b2e0758 tweak rate based choker to increase rate threashold by 2 kiB/s. Improve documentation 2020-05-10 10:56:01 +02:00
arvidn a2d59a00b2 merged RC_1_2 into master 2020-04-13 23:51:43 +02:00
arvidn c825320df8 fix issue in reading resume data 2020-04-11 15:04:39 +02:00
arvidn 82223522f9 merge RC_1_2 into master 2020-04-10 11:37:09 +02:00
arvidn c4a3937ac9 don't open any listen sockets if listen_interfaces is empty or misconfigured 2020-04-07 05:57:32 -07:00
arvidn a799ffb1a4 merge RC_1_2 into master 2020-04-05 18:38:45 +02:00
arvidn 983b1d6422 provide better names for alert_category_t constants 2020-04-04 15:06:02 -07:00
Arvid Norberg ff7d6f0edf merged RC_1_2 into master 2020-03-08 15:41:14 +01:00
arvidn eaa18ff7a1 announce port=1 instead of port=0, when there is no listen port 2020-03-07 17:11:03 -08:00
arvidn 9fd715ede9 separate announce_entry et.al into internal and public versions. This greatly simplifies internal changes without altering ABI 2020-02-08 14:42:07 +01:00
arvidn 8cc8d1bec9 merged RC_1_2 into master 2020-02-07 01:39:28 +01:00
arvidn b4cda2989e fix announcing port=0 when configured with no listen interfaces 2020-02-06 22:21:42 +01:00
arvidn c7d1f8cb53 merged RC_1_2 into master 2020-02-05 16:07:44 +01:00
arvidn d607328b45 fix announce_to_all_trackers and announce_to_all_tiers behavior 2020-02-05 11:19:15 +01:00
arvidn e3cbf630ff merged RC_1_2 into master 2020-02-03 10:01:20 +01:00
arvidn 6d865f0c60 extend tracker test to test announce_to_all_trackers and announce_to_all_tiers as well 2020-02-03 03:14:58 +01:00
arvidn 84186c6c2a factor out ip address helpers from broadcast_socket and move broadcast socket into the test support library, as it's only used by tests now 2020-01-23 23:59:01 +01:00
arvidn a8c41c0c31 merge RC_1_2 into master 2020-01-19 09:58:24 +01:00
arvidn 88d9c05e3c expand IPv4 in expand_unspecified_address 2020-01-19 08:27:33 +01:00
arvidn 9dfff3677f merged RC_1_2 into master 2020-01-18 11:05:07 +01:00
arvidn ab07eceead don't attempt sending event=stopped if event=start never succeeded 2020-01-12 14:12:23 +01:00
arvidn 7d816691b8 merged RC_1_2 into master 2020-01-11 18:21:12 +01:00
arvidn e18366bb6b make sure &key= stays consistent between different source IPs (as mandated by BEP7) 2020-01-11 11:37:54 +01:00
arvidn 16d2945d4f merged RC_1_2 into master 2019-12-17 19:48:29 +01:00
arvidn 68196dceae fix erroneous event=completed tracker announce when checking files 2019-12-15 11:21:46 +01:00
arvidn 6bf0f47de5 merge RC_1_2 into master 2019-12-03 01:56:45 +01:00
arvidn b329d579e9 clear tracker errors on success 2019-12-02 23:36:18 +01:00
Steven Siloti 575eb32c71 announce hybrid torrents on both v1 and v2 infohashes 2019-08-10 09:28:38 -07:00
Steven Siloti 86be4287d3 add info hash type 2019-08-10 09:28:38 -07:00