diff options
Diffstat (limited to 'src/lib/d2srv/tests/dns_client_unittests.cc')
-rw-r--r-- | src/lib/d2srv/tests/dns_client_unittests.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/d2srv/tests/dns_client_unittests.cc b/src/lib/d2srv/tests/dns_client_unittests.cc index ff96dba449..da18bccd92 100644 --- a/src/lib/d2srv/tests/dns_client_unittests.cc +++ b/src/lib/d2srv/tests/dns_client_unittests.cc @@ -397,8 +397,7 @@ public: socket_.reset(new udp::socket(service_->getInternalIOService(), boost::asio::ip::udp::v4())); socket_->set_option(socket_base::reuse_address(true)); - socket_->bind(udp::endpoint(address::from_string(TEST_ADDRESS), - TEST_PORT)); + socket_->bind(udp::endpoint(make_address(TEST_ADDRESS), TEST_PORT)); // Once socket is created, we can post an IO request to receive some // packet from this socket. This is asynchronous operation and // nothing is received until another IO request to send a query is @@ -469,8 +468,7 @@ public: // Setup our "loopback" server. udp::socket udp_socket(service_->getInternalIOService(), boost::asio::ip::udp::v4()); udp_socket.set_option(socket_base::reuse_address(true)); - udp_socket.bind(udp::endpoint(address::from_string(TEST_ADDRESS), - TEST_PORT)); + udp_socket.bind(udp::endpoint(make_address(TEST_ADDRESS), TEST_PORT)); udp::endpoint remote; udp_socket.async_receive_from(boost::asio::buffer(receive_buffer_, sizeof(receive_buffer_)), |