@@ -53,11 +53,9 @@ void Service::start(const std::string&)
5353 const std::string google = " google.com" ;
5454 const std::string github = " github.com" ;
5555 const std::string guardian = " theguardian.com" ;
56- const std::string hotmail = " hotmail.com" ;
5756 const std::string some_address = " some_address_that_doesnt_exist.com" ;
5857
5958 const IP4::addr stack_dns = inet.dns_addr ();
60- const IP4::addr gateway = inet.gateway ();
6159 const IP4::addr level3 = IP4::addr{4 , 2 , 2 , 1 };
6260
6361 inet.resolve (google, [google, stack_dns] (IP4::addr res, Error& err) {
@@ -96,18 +94,6 @@ void Service::start(const std::string&)
9694 }
9795 });
9896
99- inet.resolve (hotmail, gateway, [hotmail, gateway] (IP4::addr res, Error& err) {
100- if (err) {
101- print_error (hotmail, gateway, err);
102- }
103- else {
104- if (res != IP4::ADDR_ANY)
105- print_success (hotmail, gateway, res);
106- else
107- print_not_resolved (hotmail);
108- }
109- });
110-
11197 inet.resolve (some_address, [some_address, stack_dns] (IP4::addr res, Error& err) {
11298 if (err) {
11399 print_error (some_address, stack_dns, err);
0 commit comments