ipv6 support

This commit is contained in:
Chunting Gu
2020-08-24 13:50:23 +08:00
parent 12e3569a83
commit c392b57a55
10 changed files with 44 additions and 17 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ int main(int argc, char* argv[]) {
std::cout << "Book photos will be saved to: " << photo_dir << std::endl;
try {
webcc::Server server{ port }; // No doc root
webcc::Server server{ asio::ip::tcp::v4(), port };
server.Route("/books",
std::make_shared<BookListView>(),