summaryrefslogtreecommitdiff
path: root/httpd.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-28 23:48:16 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-28 23:48:16 +0100
commit945887004432a7634ce096a7c3744b42ae2ab987 (patch)
treeccd57652bd50c9832f468e7c487180bea68d26c8 /httpd.cpp
parent6d8bfa8360165097a2a5ddd22084e04fc048607b (diff)
Specify endpoint in HTTPServer constructor.
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();
}