summaryrefslogtreecommitdiff
path: root/httpd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.cpp')
-rw-r--r--httpd.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}