Commit Graph

2165 Commits

Author SHA1 Message Date
AllSeeingEyeTolledEweSew cbb4f0277e Make tests and tools python3 compatible. 2020-05-13 00:17:37 +02:00
arvidn b9b54436b8 add back ssl test to makefile 2020-04-19 15:54:59 +02:00
arvidn 744e5bcfa6 make test_privacy less likely to fail spuriously 2020-04-11 16:17:48 +02:00
arvidn c825320df8 fix issue in reading resume data 2020-04-11 15:04:39 +02:00
Orivej Desh de71f3fdc9 reduce include directories
This removes -I src -I test -I tools from the autotools build and
-I ed25519/src from all build systems.
2020-04-11 12:47:23 +02:00
arvidn faa807c0f3 fix travis build 2020-04-10 00:26:15 +02:00
arvidn 983b1d6422 provide better names for alert_category_t constants 2020-04-04 15:06:02 -07:00
arvidn a871668397 TLS version should not be configurable. it's deprecated in openssl 2020-03-29 06:41:51 -07:00
arvidn edf6660820 add build option to disable share-mode 2020-03-22 15:36:04 -07:00
arvidn 4fd6136b2a improve support for SSL connections. make passing in the SSL context into the http_connection mandatory (simplifying it, so it doesn't have to create its own). Sepaate the SSL context used for trackers and SSL torrents, so normal trackers can be validated, without interfering with the special SNI callback used for SSL torrents 2020-03-21 12:28:49 -07:00
arvidn be10ccd881 deprecate strict super seeding mode 2020-03-20 09:37:24 -07:00
arvidn b570f53ebf add build option to disable super seeding feature 2020-03-20 09:37:24 -07:00
arvidn 61a923e9b8 make UPnP port-mapping lease duration configurable, and default to 1 hour leases 2020-03-19 16:12:11 -07:00
arvidn 14d5c99a18 expanding a device does not look for a default route 2020-03-03 11:43:52 +01:00
arvidn 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 47012b506a extend timeout for invalidation-of-torrent_handle test 2020-03-01 18:00:42 +01:00
FranciscoPombal 0eee042bf9 Fix some more unlikely integer truncation 2020-02-28 09:10:44 +01:00
arvidn cc792d8638 improve error messages and error reporting of failing enum_routes() 2020-02-26 17:48:12 +01:00
FranciscoPombal 091dbd6494 Fix possible output truncation in test_dht 2020-02-23 18:15:41 +01:00
arvidn c299004abf undeprecate settings_pack::dht_upload_rate_limit. Make sure it doesn't overflow if set too high 2020-02-20 09:25:15 +01:00
arvidn 0a4a06ce74 apparently on VPNs it's common for the gateway for a route to be outside of the netmask of the network it's a router for. fix that in get_gateway 2020-02-08 23:03:10 +01:00
arvidn bdee0b563c fix suggest_read_cache setting 2020-02-02 20:16:59 +01:00
arvidn 208d71ba77 support source-hint from routing table, where supported 2020-01-22 15:50:33 +01:00
arvidn bc0274ed6a limit the number of DHT nodes to run 2020-01-21 12:04:22 +01:00
arvidn 69fe7a9ad6 debug test_transfer 2020-01-20 14:27:16 +01:00
arvidn b5ea5bb82c move upnp mapper to have one per listen_socket_t. simplify the upnp logic to only deal with a single network. 2020-01-20 14:27:16 +01:00
arvidn b8726bd4f6 refactor discover_device() away from upnp 2020-01-20 14:27:16 +01:00
arvidn f5ebd4e354 simplify natpmp by requiring it to be tied to a specific network, and use get_gateway() and remove unused get_default_route() functions 2020-01-20 01:24:22 +01:00
arvidn a53d3a8746 factor out get_gateway function and add unit tests. IPv6 gateways are not addressed in the same network, so we can't use match_addr_mask(). Assume all local IPv6 addresses do not have a gateway 2020-01-19 08:27:33 +01:00
arvidn 88d9c05e3c expand IPv4 in expand_unspecified_address 2020-01-19 08:27:33 +01:00
arvidn 0961427b50 expand unspecified to loopback as well 2020-01-19 08:27:33 +01:00
arvidn 4ceb2ea467 limit tracker announces and SOCKS5 connection attempts to listen_socket_t that actually can reach the target 2020-01-19 08:27:33 +01:00
arvidn d13109426a fix test_lsd to pass reliably 2020-01-18 03:20:20 +01:00
arvidn df85b31490 deprecate and remvoe broadcast_lsd setting 2020-01-16 16:02:00 +01:00
arvidn fa79697f45 deprecate (and remove) upnp_ignore_nonrouters setting 2020-01-16 10:35:50 +01:00
arvidn 659a78eb56 improve test_upnp by responding with a unicast message 2020-01-15 08:03:33 +01:00
arvidn 96695fa714 fix build_netmask to treat the count as a prefix and add tests 2020-01-06 20:23:13 +01:00
arvidn af3d084092 convert the duplex enum into a flags field, on listen_socket_t and listen_endpoint 2020-01-06 20:22:55 +01:00
Arvid Norberg 0675bd263f add new socks5_alert to trouble shoot SOCKS5 proxies 2019-12-28 17:57:44 +01:00
Arvid Norberg 55460a60bc fix the documentation generation tool to work for flags, and other global constants. Improve documentation 2019-12-19 01:50:22 +01:00
arvidn 0063e43650 silence buggy nodiscard diagnostic on MSVC 2019-12-17 02:16:59 +01:00
arvidn 68196dceae fix erroneous event=completed tracker announce when checking files 2019-12-15 11:21:46 +01:00
arvidn 59a29a44e2 promote errors in parsing listen_interfaces to post listen_failed_alert 2019-12-09 06:54:31 +01:00
arvidn b5790b982b fix issue of rapid calls to file_priority() clobbering each other 2019-12-04 22:04:13 +01:00
arvidn 97a79d2dba fixed restoring of trackers, comment, creation date and created-by in resume data 2019-11-25 14:21:55 +01:00
arvidn a53d090313 fix handling of torrents with too large pieces 2019-11-25 02:46:55 +01:00
arvidn 33d006df99 add unit tests for http_connection over plain HTTP proxy 2019-11-21 08:40:36 +01:00
arvidn 0ce4e576e6 disable wait_for_alert test, since it relies on accurate wall-clock timings, which aren't necessarily possible on some CIs 2019-11-21 08:36:12 +01:00
Arvid Norberg afb5d842ff test_resume fix 2019-11-19 01:46:39 +01:00
Arvid Norberg 5145664562 force python interpreter for mingw build on appveyor 2019-11-19 01:46:39 +01:00