Commit Graph
79 Commits
Author SHA1 Message Date
Arvid Norberg 7267794c02 Merge branch RC_2_0 into RC_2_1 2026-06-12 11:36:14 +02:00
hussainarslanandArvid Norberg bf839c0f89 Fix web seed Host header ports 2026-06-12 00:33:56 +02:00
Arvid Norberg 28d1558c07 Merge branch 'RC_2_0' 2026-03-05 07:38:04 +01:00
tanawatra.candArvid Norberg 667e93ddec implement format_host_for_connect function to handle hostname and port formatting for HTTP CONNECT requests, including IPv6 support and edge case handling; add comprehensive tests for various scenarios 2026-02-15 23:59:15 +01:00
Arvid Norberg a01469c8d1 Merge branch 'RC_2_0' 2025-09-09 09:20:48 +02:00
Arvid NorbergandArvid Norberg c106f62ec2 fix build issues when disabling i2p support 2025-09-09 07:50:06 +02:00
arvidnandArvid Norberg b43dbb9949 implement i2p_pex, peer exchange support for i2p torrents 2025-01-30 22:09:33 +01:00
arvidn 8e53eba82f Merge branch 'RC_2_0' 2023-08-26 11:15:27 +02:00
luzpazandArvid Norberg 63373cf012 Fixes various typos
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
2023-08-24 07:52:41 +02:00
arvidn 743602ae20 merged RC_2_0 into master 2023-04-11 14:05:11 +02:00
arvidnandArvid Norberg 87c38dcfdc add base64decode() for i2p alphabet and simplify base32encode() 2023-04-10 13:19:19 +02:00
arvidnandArvid Norberg d0d929853e make base32encode take a span instead of a string. We encode binary blobs, not text. It's only used in one place (when i2p is enabled) and we pass in a std::string 2023-04-10 13:19:19 +02:00
arvidn 964ffc57ba merge RC_2_0 into master 2022-06-23 08:07:28 +02:00
arvidnandArvid Norberg 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
Alden TorresandArvid Norberg a597f5824b moved string_util.hpp to aux 2020-12-30 00:43:15 +01:00
Arvid Norberg b4b8060f9d merged RC_2_0 into master 2020-12-24 17:32:20 +01:00
arvidn f19669f41e merge RC_1_2 into RC_2_0 2020-12-17 02:44:34 +01:00
arvidnandArvid Norberg eabfa14e5d rename split_string -> split_string_quotes, since it honors double-quotes. The more useful facility of just splitting a string is instead introduced as split_string 2020-12-13 03:36:40 +01:00
arvidnandArvid Norberg 19e8c2f3ea remove full BSD license from all source files. reference LICENSE file in the root instead 2020-09-02 00:56:54 -07:00
arvidn 005fa0cc0f merged RC_2_0 into master 2020-09-01 15:32:54 +02:00
arvidnandArvid Norberg 5935f63ead update copyrights 2020-09-01 05:14:17 -07:00
arvidnandArvid Norberg 8ee75d0067 fix warnings in test_string.cpp 2020-08-05 02:26:54 -07:00
Alden TorresandArvid Norberg 0b6a6a23c1 fixing warnings of tests and logging=off 2020-08-03 00:09:52 -07:00
arvidnandArvid Norberg be9881c99b use standard string_view 2020-07-11 05:20:37 -07:00
arvidn 50124ec7f7 merged RC_1_2 into master 2020-03-03 14:23:52 +01:00
arvidnandArvid Norberg 1e4083b3fb rely less on the ability to enumerate the routing table reliably. Any IP address
explicitly specified is assumed to represent an externally available IP, unless
marked with the l-flag. If a device name or an unspecified address is used, they
are expanded and only for such expanded entries is there a heuristic to
determine which addresses are externally available and which are local. The
default is to assume it's local only, unless it has a globally routable IP
address or a default route can be found for the device.
2020-03-03 11:43:52 +01:00
arvidn bdf804ce2a merged RC_1_2 into master 2019-12-09 23:26:50 +01:00
arvidnandArvid Norberg 59a29a44e2 promote errors in parsing listen_interfaces to post listen_failed_alert 2019-12-09 06:54:31 +01:00
arvidnandArvid Norberg d3f7a363c2 update copyright year 2019-08-29 00:13:04 +02:00
arvidn 86e11142a1 merged RC_1_2 into master 2019-08-10 21:11:10 -07:00
arvidnandArvid Norberg 8e23f9cc92 improve file_storage::sanitize_symlinks 2019-07-29 06:10:04 -07:00
arvidn 24df242a9d merged RC_1_2 into master 2019-04-24 07:30:57 +02:00
arvidnandArvid Norberg f323276044 remove support for adding torrents by file:// URL 2019-04-23 20:52:39 +02:00
arvidnandArvid Norberg 4441655bab optimize resolve_duplicate_filenames_slow() 2019-04-09 01:59:34 +02:00
arvidnandArvid Norberg 7e13b34158 fix build i2p=on,off configurations 2018-12-07 13:36:53 +01:00
Arvid NorbergandArvid Norberg 1a27ff7107 parse_magnet_uri simplification 2018-10-05 11:01:45 +02:00
Arvid NorbergandArvid Norberg b90564d418 remove the IPv6 enable/disable build config 2018-08-19 22:20:54 +02:00
arvidnandArvid Norberg fe612ca167 replace the TORRENT_CFG ABI check with inline namespaces around the symbol that can change ABI based on build configuration options 2018-05-13 19:25:17 +02:00
Alden TorresandArvid Norberg 13e54a3da8 fixing warnings in tests code, part1 (#2700) 2018-01-19 22:40:39 +01:00
arvidnandArvid Norberg 9839507ecd simplify to_string to not apply unary - to an unsigned integer 2017-09-17 21:23:24 +02:00
arvidnandArvid Norberg 2025c15ec1 cleanup tokenize_string -> split_string 2017-09-02 07:46:16 +02:00
Arvid NorbergandGitHub d250ba5a17 wrap destination string in i2p_peer in string_ptr handler (#2268) 2017-08-25 09:42:46 +02:00
arvidn 05b5b4ef4d merged RC_1_1 into master 2017-08-16 22:46:47 +02:00
arvidnandArvid Norberg b70d3efba9 fix infinite loop when parsing torrents whose filenames have zeroes. #2247 2017-08-16 07:21:34 +02:00
pavel.pimenovandArvid Norberg a422af1a7b remove call _strchr
_TEXT	SEGMENT
_c$ = 8							; size = 1
?is_space@@YA_ND@Z PROC					; is_space, COMDAT

; 8    : 	static const char* ws = " \t\n\r\f\v";
; 9    : 	return strchr(ws, c) != nullptr;

	movsx	eax, BYTE PTR _c$[esp-4]
	push	eax
	push	DWORD PTR ?ws@?1??is_space@@YA_ND@Z@4PBDB
	call	_strchr
	add	esp, 8
	neg	eax
	sbb	eax, eax
	neg	eax

; 10   : }
2017-07-12 15:34:45 -07:00
arvidnandArvid Norberg d138f02424 introduce lt namespace alias 2017-04-23 23:43:58 -04:00
arvidnandArvid Norberg 0319b53d5f imrove some test coverage and fix bug in trim() function 2017-03-31 09:43:25 -04:00
arvidnandArvid Norberg 6584423737 don't include base32encode in the build when i2p is disabled 2017-03-31 07:24:50 -04:00
arvidnandArvid Norberg 488c1a2dcf deprecated (undocumented) file:// urls, added torrent_file_path alternative 2017-03-23 20:26:55 -04:00
arvidnandArvid Norberg a087a283de make tests print to stdout instead of stderr 2017-01-02 11:28:41 -05:00