refactor: udp_core constructor (#4469)

* refactor: udp_core constructor

* refactor: invert dependency between tr_session.publicAddress() and tr_globalIPv6()
This commit is contained in:
Charles Kerr
2022-12-28 02:03:35 -06:00
committed by GitHub
parent ecb04b4cb1
commit 5ce503f1ab
7 changed files with 76 additions and 181 deletions

View File

@@ -368,4 +368,4 @@ void tr_netSetTOS(tr_socket_t sock, int tos, tr_address_type type);
*/
[[nodiscard]] std::string tr_net_strerror(int err);
[[nodiscard]] std::optional<tr_address> tr_globalIPv6(tr_session const* session = nullptr);
[[nodiscard]] std::optional<tr_address> tr_globalIPv6();