Commit Graph

2152 Commits

Author SHA1 Message Date
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
Arvid Norberg f4ab272c5c attempt to fix warning 2019-11-19 01:46:39 +01:00
Arvid Norberg ad787d2a4f fix test_flags (for windows) 2019-11-19 01:46:39 +01:00
Arvid Norberg 8abd878ed4 fix creating directory in test_utp 2019-11-19 01:46:39 +01:00
Arvid Norberg fbb7c1e2e3 fix test_receive_buffer. print errors in test_utp.cpp 2019-11-19 01:46:39 +01:00
Arvid Norberg 54edd434f4 wait until python gets running to open its socket 2019-11-19 01:46:39 +01:00
Arvid Norberg 76f53297a9 update appveyor image and boost version. explicitly use python2 for test scripts (as the SSL behavior has changed in python 3 in non-trivial ways) 2019-11-19 01:46:39 +01:00
arvidn 818cc1c495 set terminate handler in test framework to print stacktrace if called by test. Install signal handler on windows 2019-11-03 05:56:44 -08:00
arvidn 271bc55694 update SSL test certificates 2019-11-03 05:56:22 -08:00
arvidn c8f3063f25 fix SSL test 2019-10-15 10:22:19 +02:00
arvidn 9c970550e3 fix clang warning on empty statements by fixing the test macros 2019-09-24 01:28:43 +02:00
Arvid Norberg 08b6a112c0 fix the asserts=on and invariant-checks=on default build. Right now you can't change them in debug builds. Just make those defaults when building tests and examples. Also enable debug-iterators by default in tests and examples 2019-09-16 00:21:53 -06:00
Arvid Norberg 2f5fd13a59 put default build configuration for tests in a variable, to avoid repetition. Make all tests built as individual executables again 2019-09-15 15:48:31 -06:00
arvidn beea1eb731 fix over-eager TORRENT_ABI_VERSION check in test_bencoding 2019-09-15 05:53:49 +02:00