add optionsfield to set http port

This commit is contained in:
denk-mal committed 2015-06-22 14:11:15 +02:00
1 parent b03f54ffcd
commit fc74e16097
5 files changed
+47 -9

No files matched your search

+2 -2
View File
@@ -322,9 +322,9 @@ void Server::start(void)
{
if (m_started) return;
static const int PORT = 19455;
int port = HttpSettings::httpPort();
daemon = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, PORT, NULL, NULL,
daemon = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, port, NULL, NULL,
&this->request_handler_wrapper, this,
MHD_OPTION_NOTIFY_COMPLETED,
this->request_completed, NULL,