From 6a88ffc58563bfb2ee34efff00ecc680c3a2f109 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 26 Jan 2020 12:19:59 +0800 Subject: [PATCH] update BEP links to www.bittorrent.org domain This is because previously the links to bittorrent.org will redirect to another website and then returns http 404 not found. Also related: https://github.com/bittorrent/bittorrent.org/issues/99 --- docs/dht_extensions.rst | 2 +- docs/extension_protocol.rst | 2 +- docs/features.rst | 28 ++++++++++---------- docs/gen_reference_doc.py | 6 ++--- docs/index.rst | 6 ++--- docs/manual.rst | 6 ++--- include/libtorrent/kademlia/dht_settings.hpp | 2 +- include/libtorrent/kademlia/dht_state.hpp | 2 +- include/libtorrent/settings_pack.hpp | 2 +- include/libtorrent/torrent_info.hpp | 2 +- 10 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/dht_extensions.rst b/docs/dht_extensions.rst index 4880b7587..db4d94bd0 100644 --- a/docs/dht_extensions.rst +++ b/docs/dht_extensions.rst @@ -50,7 +50,7 @@ IPv6 support **This extension is superseded by** `BEP 32`_. -.. _`BEP 32`: https://bittorrent.org/beps/bep_0032.html +.. _`BEP 32`: https://www.bittorrent.org/beps/bep_0032.html The DHT messages that don't support IPv6 are the ``nodes`` replies. They encode all the contacts as 6 bytes packed together in sequence in a diff --git a/docs/extension_protocol.rst b/docs/extension_protocol.rst index 95bae8e76..cd6a637a7 100644 --- a/docs/extension_protocol.rst +++ b/docs/extension_protocol.rst @@ -295,7 +295,7 @@ Don't have metadata: | | | doesn't have any metadata. | +-----------+---------------+----------------------------------------+ -.. _`BEP 9`: https://bittorrent.org/beps/bep_0009.html +.. _`BEP 9`: https://www.bittorrent.org/beps/bep_0009.html dont_have --------- diff --git a/docs/features.rst b/docs/features.rst index 74c49ebe7..8f615f781 100644 --- a/docs/features.rst +++ b/docs/features.rst @@ -108,20 +108,20 @@ network .. _`DHT extensions`: dht_extensions.html -.. _`BEP 5`: https://bittorrent.org/beps/bep_0005.html -.. _`BEP 7`: https://bittorrent.org/beps/bep_0007.html -.. _`BEP 9`: https://bittorrent.org/beps/bep_0009.html -.. _`BEP 10`: https://bittorrent.org/beps/bep_0010.html -.. _`BEP 12`: https://bittorrent.org/beps/bep_0012.html -.. _`BEP 15`: https://bittorrent.org/beps/bep_0015.html -.. _`BEP 16`: https://bittorrent.org/beps/bep_0016.html -.. _`BEP 17`: https://bittorrent.org/beps/bep_0017.html -.. _`BEP 19`: https://bittorrent.org/beps/bep_0019.html -.. _`BEP 21`: https://bittorrent.org/beps/bep_0021.html -.. _`BEP 24`: https://bittorrent.org/beps/bep_0024.html -.. _`BEP 27`: https://bittorrent.org/beps/bep_0027.html -.. _`BEP 29`: https://bittorrent.org/beps/bep_0029.html -.. _`BEP 53`: https://bittorrent.org/beps/bep_0053.html +.. _`BEP 5`: https://www.bittorrent.org/beps/bep_0005.html +.. _`BEP 7`: https://www.bittorrent.org/beps/bep_0007.html +.. _`BEP 9`: https://www.bittorrent.org/beps/bep_0009.html +.. _`BEP 10`: https://www.bittorrent.org/beps/bep_0010.html +.. _`BEP 12`: https://www.bittorrent.org/beps/bep_0012.html +.. _`BEP 15`: https://www.bittorrent.org/beps/bep_0015.html +.. _`BEP 16`: https://www.bittorrent.org/beps/bep_0016.html +.. _`BEP 17`: https://www.bittorrent.org/beps/bep_0017.html +.. _`BEP 19`: https://www.bittorrent.org/beps/bep_0019.html +.. _`BEP 21`: https://www.bittorrent.org/beps/bep_0021.html +.. _`BEP 24`: https://www.bittorrent.org/beps/bep_0024.html +.. _`BEP 27`: https://www.bittorrent.org/beps/bep_0027.html +.. _`BEP 29`: https://www.bittorrent.org/beps/bep_0029.html +.. _`BEP 53`: https://www.bittorrent.org/beps/bep_0053.html .. _`extension protocol`: extension_protocol.html highlighted features diff --git a/docs/gen_reference_doc.py b/docs/gen_reference_doc.py index fe9dbedba..c33cd87f4 100644 --- a/docs/gen_reference_doc.py +++ b/docs/gen_reference_doc.py @@ -66,9 +66,9 @@ symbols = \ static_links = \ { - ".. _`BEP 3`: https://bittorrent.org/beps/bep_0003.html", - ".. _`BEP 17`: https://bittorrent.org/beps/bep_0017.html", - ".. _`BEP 19`: https://bittorrent.org/beps/bep_0019.html" + ".. _`BEP 3`: https://www.bittorrent.org/beps/bep_0003.html", + ".. _`BEP 17`: https://www.bittorrent.org/beps/bep_0017.html", + ".. _`BEP 19`: https://www.bittorrent.org/beps/bep_0019.html" } anon_index = 0 diff --git a/docs/index.rst b/docs/index.rst index d931ee1cd..ee2e3444b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -82,7 +82,7 @@ libtorrent .. _`DHT store extension`: dht_store.html .. _`UDP tracker protocol`: udp_tracker_protocol.html .. _`HTTP seed`: http://www.getright.com/seedtorrent.html -.. _multi-tracker: https://bittorrent.org/beps/bep_0012.html +.. _multi-tracker: https://www.bittorrent.org/beps/bep_0012.html .. _mailing list: https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss .. _archive: https://sourceforge.net/p/libtorrent/mailman/libtorrent-discuss/ .. _`who's using libtorrent?`: projects.html @@ -131,14 +131,14 @@ See the contribute_ page for other ways to help out.
bitcoin:373ZDeQgQSQNuxdinNAPnQ63CRNn4iEXzg - + - +
diff --git a/docs/manual.rst b/docs/manual.rst index e3f0a59ee..f06c822df 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -608,8 +608,8 @@ There is limited support for HTTP redirects. In case some files are redirected to *different hosts*, the files must be piece aligned or padded to be piece aligned. -.. _`BEP 17`: https://bittorrent.org/beps/bep_0017.html -.. _`BEP 19`: https://bittorrent.org/beps/bep_0019.html +.. _`BEP 17`: https://www.bittorrent.org/beps/bep_0017.html +.. _`BEP 19`: https://www.bittorrent.org/beps/bep_0019.html piece picker ============ @@ -833,7 +833,7 @@ loopback will not be used for announcing to trackers. For more details, see `BEP 7`_. -.. _`BEP 7`: https://bittorrent.org/beps/bep_0007.html +.. _`BEP 7`: https://www.bittorrent.org/beps/bep_0007.html SOCKS5 UDP tunnels ------------------ diff --git a/include/libtorrent/kademlia/dht_settings.hpp b/include/libtorrent/kademlia/dht_settings.hpp index 1e4c5656f..afa9628d7 100644 --- a/include/libtorrent/kademlia/dht_settings.hpp +++ b/include/libtorrent/kademlia/dht_settings.hpp @@ -169,7 +169,7 @@ namespace dht { struct settings : dht_settings { // when this is true, nodes whose IDs are derived from their source IP - // according to BEP 42 (https://bittorrent.org/beps/bep_0042.html) are + // according to BEP 42 (https://www.bittorrent.org/beps/bep_0042.html) are // preferred in the routing table. bool prefer_verified_node_ids = true; }; diff --git a/include/libtorrent/kademlia/dht_state.hpp b/include/libtorrent/kademlia/dht_state.hpp index 8a24b01ad..cb279f7ee 100644 --- a/include/libtorrent/kademlia/dht_state.hpp +++ b/include/libtorrent/kademlia/dht_state.hpp @@ -55,7 +55,7 @@ namespace libtorrent { namespace dht { // At this moment the library is only a dual stack // implementation of the DHT. See `BEP 32`_ // - // .. _`BEP 32`: https://bittorrent.org/beps/bep_0032.html + // .. _`BEP 32`: https://www.bittorrent.org/beps/bep_0032.html struct TORRENT_EXPORT dht_state { node_ids_t nids; diff --git a/include/libtorrent/settings_pack.hpp b/include/libtorrent/settings_pack.hpp index a53a294d5..9480ee219 100644 --- a/include/libtorrent/settings_pack.hpp +++ b/include/libtorrent/settings_pack.hpp @@ -767,7 +767,7 @@ namespace aux { enable_ip_notifier, // when this is true, nodes whose IDs are derived from their source IP - // according to BEP 42 (https://bittorrent.org/beps/bep_0042.html) are + // according to BEP 42 (https://www.bittorrent.org/beps/bep_0042.html) are // preferred in the routing table. dht_prefer_verified_node_ids, diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp index 2f42edf50..a1f399a2c 100644 --- a/include/libtorrent/torrent_info.hpp +++ b/include/libtorrent/torrent_info.hpp @@ -592,7 +592,7 @@ namespace libtorrent { // returns whether or not this is a merkle torrent. // see `BEP 30`__. // - // __ https://bittorrent.org/beps/bep_0030.html + // __ https://www.bittorrent.org/beps/bep_0030.html bool is_merkle_torrent() const { return !m_merkle_tree.empty(); } private: