Fix connection issue when several network interfaces are connected on the same network

This commit is contained in:
Guillaume Meunier
2025-04-27 16:03:27 +02:00
parent 0ce7662f58
commit 5cf1697c5d
3 changed files with 4 additions and 9 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ void wivrn::wivrn_connection::init(std::stop_token stop_token, std::function<voi
else
{
stream = decltype(stream)();
stream.bind(port);
stream.bind(server_address);
}
auto receive = [&](std::optional<std::chrono::seconds> timeout = std::nullopt, bool allow_stream_socket = false) {