Skip to content

Commit

Permalink
Fix BindAddress usage on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Zitrax committed Dec 14, 2024
1 parent 527f72b commit 40223b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_torrent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ TEST_F(torrent_with_tmp_dir, tracker_requests_announce) {

zit::Torrent t(m_io_context, torrent_file, tmp_dir(),
zit::SingletonDirectoryFileConfig::getInstance(),
[&](const zit::Url& url, const std::string&) {
[&](const zit::Url& url, const zit::Net::BindAddress&) {
requests.push_back(url.host());
BeDict peers;
peers["peers"] =
Expand Down Expand Up @@ -215,7 +215,7 @@ TEST_F(torrent_with_tmp_dir, tracker_requests_announce_list) {
m_io_context, torrent_file, tmp_dir(),
zit::SingletonDirectoryFileConfig::getInstance(),
// Keep track of the requests and make only the last one pass
[&, call = 0](const zit::Url& url, const std::string&) mutable {
[&, call = 0](const zit::Url& url, const zit::Net::BindAddress&) mutable {
requests.push_back(url.host());
BeDict peers;
peers["peers"] = Element::build(
Expand Down

0 comments on commit 40223b4

Please sign in to comment.