File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Release/src/http/listener Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,11 @@ void hostport_listener::start()
475
475
// resolve the endpoint address
476
476
auto & service = crossplat::threadpool::shared_instance ().service ();
477
477
tcp::resolver resolver (service);
478
- tcp::resolver::query query (m_host, m_port);
478
+ // #446: boost resolver does not recognize "+" as a host wildchar
479
+ tcp::resolver::query query = ( " +" == m_host)?
480
+ tcp::resolver::query (m_port):
481
+ tcp::resolver::query (m_host, m_port);
482
+
479
483
tcp::endpoint endpoint = *resolver.resolve (query);
480
484
481
485
m_acceptor.reset (new tcp::acceptor (service, endpoint));
@@ -1320,4 +1324,4 @@ std::unique_ptr<http_server> make_http_asio_server()
1320
1324
return make_unique<http_linux_server>();
1321
1325
}
1322
1326
1323
- }}}}
1327
+ }}}}
You can’t perform that action at this time.
0 commit comments