Igor Katson
28332fd4b9
Prepare for releasing 8.1.0
2025-06-05 11:38:50 +01:00
Alex Galvin
610140cff6
feat: include crate version in peer_id
2025-06-02 03:29:16 -04:00
owl
f020673032
fix: improve path traversal check
...
The previous implementation would falsely detect a path traversal in a
filename such as "foo... bar".
This patch changes the check function so that it inspects `PathBuf`
components instead of substrings.
2025-05-09 00:07:17 +02:00
Igor Katson
29508014b8
Trackers: reuse UDP socket
2025-02-27 14:25:24 +00:00
Igor Katson
52be6d7cef
Trackers list from outside
2025-02-27 12:55:10 +00:00
Igor Katson
d709557372
Change tracker type to be url::Url in most places
2025-02-27 12:35:37 +00:00
Igor Katson
3eb1558451
Parsing tracker list
2025-02-27 12:26:23 +00:00
Alexander WB
1a31340076
👌 Fix remaining pr comments
2025-02-25 04:25:24 +01:00
Alexander WB
c19ea3979a
👌 Improved error handling
2025-02-25 03:28:13 +01:00
Alexander WB
6e9ecf8a26
Add blocklist-url launch parameter
...
Block incoming peers from blocked ips.
2025-02-20 21:09:44 +01:00
InoUno
4e58b35c88
Make Session ratelimits accessible from outside of crate
2025-02-18 06:51:59 +01:00
Igor Katson
3e6c2eae79
Clippy
2025-01-30 11:24:43 +00:00
Igor Katson
c84e3ad90d
Can unpause dead no-peer-source torrent just fine
2025-01-13 17:41:42 +00:00
Igor Katson
8efd77fce2
Initial private torrents support
2025-01-13 15:47:13 +00:00
Igor Katson
9e4c465336
A couple touch-ups
2024-12-07 12:17:17 +00:00
Igor Katson
82f167d50d
Removed the overly conservative check
2024-12-07 12:14:59 +00:00
Igor Katson
afca0fbbe3
Remove unnecessary initial_peers merging code
2024-12-07 12:06:06 +00:00
Igor Katson
0fabb453aa
Storing torrent name in ManagedTorrentShared
2024-12-06 12:57:26 +00:00
Igor Katson
5f07872725
Docs for _start()
2024-12-06 12:14:34 +00:00
Igor Katson
f637959ba7
Group session fields + add comments (Claude)
2024-12-06 00:08:11 +00:00
Igor Katson
456a51d4db
Split up "add_torrent" method
2024-12-05 23:48:14 +00:00
Igor Katson
100b7116df
Split out TorrentMetadata
2024-12-05 23:12:46 +00:00
Igor Katson
b796a8767b
"main_torrent_info" -> "add_torrent_internal"
2024-12-05 21:58:12 +00:00
Igor Katson
96946d5a81
"make_peer_rx_managed_torrent"
2024-12-05 21:57:44 +00:00
Igor Katson
8131ba0482
Store initial_peers in state
2024-12-05 21:47:37 +00:00
Igor Katson
e22132bba0
"make_peer_rx" - include initial peers
2024-12-05 21:45:27 +00:00
Igor Katson
25b309867b
Initial impl of up/down ratelimits
2024-11-18 17:34:50 +00:00
Igor Katson
95f5a322f6
[feature] support 40-byte infohash (not a magnet) as a way to add torrents
2024-11-07 19:35:02 +00:00
Igor Katson
2e7c7216e3
compute "attrs" field
2024-11-07 13:46:12 +00:00
Igor Katson
18755d8971
Add access to new fields
2024-11-07 13:46:12 +00:00
Igor Katson
98f011673e
iter_file_details_ext update impl
2024-11-07 13:46:12 +00:00
Igor Katson
abce0c6629
rename iter_file_details -> iter_file_details_ext
2024-11-07 13:46:12 +00:00
Ivan
bac364760e
fmt
2024-10-19 19:50:26 +02:00
Ivan Moiseev
be9716e6a7
fix: simlify
2024-10-12 16:08:30 +02:00
Ivan Moiseev
bbdb78f773
feat: remove drop
2024-10-12 15:56:26 +02:00
Ivan Moiseev
b105a3bb22
fix: transactional pause
2024-10-12 15:17:19 +02:00
Igor Katson
990c5f866b
Disable upload: do not expose in default builds, move under a feature flag.
2024-10-03 09:07:19 +01:00
pasta
57db99e9b8
fixup: only set only_files if it was none
2024-10-02 15:16:32 -05:00
pasta
aa0c287fe5
feat: implement BEP-53 support
2024-10-01 13:22:54 -05:00
Ivan
a31e8344b2
Format - delete trailing spaces
2024-09-26 19:19:56 +02:00
Misaka
f184e7f5bf
Add support for adding custom trackers
2024-09-24 21:55:02 +08:00
Igor Katson
b3263c24d3
fixed span.enter in session
2024-09-15 21:57:50 +01:00
Igor Katson
dedee2ef08
Watching works fine
2024-09-13 12:58:09 +01:00
Igor Katson
a73f921c5f
one line anyhow error formatting
2024-09-13 12:36:32 +01:00
Igor Katson
00daae97ed
Reorder removal so that mmap is removed before storage
2024-09-13 00:20:37 +01:00
Igor Katson
d6b1c47d45
Add #[track_caller] to all spawns so that tokio-console works (if enabled)
2024-08-29 10:30:06 +01:00
Igor Katson
fc7ae3bbe5
[Feature] option to disable upload
2024-08-28 18:02:25 +01:00
Igor Katson
9f798696ff
reduce noisy test logs
2024-08-28 17:44:46 +01:00
Igor Katson
bf9d75e748
Graceful shutdown
2024-08-26 18:25:22 +01:00
Igor Katson
0c06601b34
Fix a broken test on Windows
2024-08-23 19:37:31 +01:00