diff --git a/src/input/api/DSU/DSUControllerProvider.cpp b/src/input/api/DSU/DSUControllerProvider.cpp index 37f92774e..fa00277c2 100644 --- a/src/input/api/DSU/DSUControllerProvider.cpp +++ b/src/input/api/DSU/DSUControllerProvider.cpp @@ -78,9 +78,7 @@ bool DSUControllerProvider::connect() using namespace boost::asio; ip::udp::resolver resolver(m_io_service); - const ip::udp::resolver::query query(ip::udp::v4(), get_settings().ip, fmt::format("{}", get_settings().port), - ip::udp::resolver::query::canonical_name); - m_receiver_endpoint = *resolver.resolve(query); + m_receiver_endpoint = *resolver.resolve(get_settings().ip, fmt::format("{}", get_settings().port)).cbegin(); if (m_socket.is_open()) m_socket.close(); diff --git a/src/input/api/DSU/DSUControllerProvider.h b/src/input/api/DSU/DSUControllerProvider.h index dfa4d7b89..692da619d 100644 --- a/src/input/api/DSU/DSUControllerProvider.h +++ b/src/input/api/DSU/DSUControllerProvider.h @@ -102,7 +102,7 @@ class DSUControllerProvider : public ControllerProvider std::condition_variable m_writer_cond; uint32 m_uid; - boost::asio::io_service m_io_service; + boost::asio::io_context m_io_service; boost::asio::ip::udp::endpoint m_receiver_endpoint; boost::asio::ip::udp::socket m_socket;