diff --git a/test/mock_server.cpp b/test/mock_server.cpp index fbded3fe..9c56766a 100644 --- a/test/mock_server.cpp +++ b/test/mock_server.cpp @@ -124,7 +124,8 @@ void MockServer::serverThread() { : typename C::Connect::Response(C::Connect::Status::kSuccess); }); - Poco::Net::DatagramSocket udp_socket({kHostname, 0}); + Poco::Net::DatagramSocket udp_socket; + udp_socket.bind({kHostname, 0}); udp_socket.setBlocking(true); Socket udp_socket_wrapper; udp_socket_wrapper.sendBytes = [&](const void* data, size_t size) {