From 945887004432a7634ce096a7c3744b42ae2ab987 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Tue, 28 Dec 2010 23:48:16 +0100 Subject: Specify endpoint in HTTPServer constructor. --- httpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httpd.cpp') diff --git a/httpd.cpp b/httpd.cpp index 203f4e0..0c1015d 100644 --- a/httpd.cpp +++ b/httpd.cpp @@ -43,7 +43,7 @@ void HTTPConnection::start() { boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred)); } -HTTPServer::HTTPServer(boost::asio::io_service& io_service) : acceptor_(io_service, tcp::endpoint(tcp::v4(), 8000)) { +HTTPServer::HTTPServer(boost::asio::io_service& io_service, const tcp::endpoint& endpoint) : acceptor_(io_service, endpoint) { start_accept(); } -- cgit v1.2.3