From 914f329eea335260f01cbbe6c328dfa2502acfc3 Mon Sep 17 00:00:00 2001 From: loki Date: Tue, 8 Jun 2021 22:23:39 +0200 Subject: [PATCH] removed unnessesary header includes --- sunshine/confighttp.cpp | 12 +++++++----- sunshine/crypto.cpp | 1 - sunshine/crypto.h | 2 -- sunshine/httpcommon.cpp | 2 ++ 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/sunshine/confighttp.cpp b/sunshine/confighttp.cpp index 2f60eda8..8eb7ba0e 100644 --- a/sunshine/confighttp.cpp +++ b/sunshine/confighttp.cpp @@ -2,6 +2,8 @@ // Created by TheElixZammuto on 2021-05-09. // TODO: Authentication, better handling of routes common to nvhttp, cleanup +#define BOOST_BIND_GLOBAL_PLACEHOLDERS + #include "process.h" #include @@ -32,7 +34,7 @@ std::string read_file(std::string path); namespace confighttp { using namespace std::literals; -constexpr auto PORT_HTTP = 47990; +constexpr auto PORT_HTTPS = 47990; namespace fs = std::filesystem; namespace pt = boost::property_tree; @@ -424,14 +426,14 @@ void start(std::shared_ptr shutdown_event) { server.resource["^/api/apps/([0-9]+)$"]["DELETE"] = deleteApp; server.config.reuse_address = true; server.config.address = "0.0.0.0"s; - server.config.port = PORT_HTTP; + server.config.port = PORT_HTTPS; try { server.bind(); - BOOST_LOG(info) << "Configuration UI available at [https://localhost:"sv << PORT_HTTP << "]"; + BOOST_LOG(info) << "Configuration UI available at [https://localhost:"sv << PORT_HTTPS << "]"; } catch(boost::system::system_error &err) { - BOOST_LOG(fatal) << "Couldn't bind http server to ports ["sv << PORT_HTTP << "]: "sv << err.what(); + BOOST_LOG(fatal) << "Couldn't bind http server to ports ["sv << PORT_HTTPS << "]: "sv << err.what(); shutdown_event->raise(true); return; @@ -446,7 +448,7 @@ void start(std::shared_ptr shutdown_event) { return; } - BOOST_LOG(fatal) << "Couldn't start Configuration HTTP server to ports ["sv << PORT_HTTP << ", "sv << PORT_HTTP << "]: "sv << err.what(); + BOOST_LOG(fatal) << "Couldn't start Configuration HTTP server to ports ["sv << PORT_HTTPS << ", "sv << PORT_HTTPS << "]: "sv << err.what(); shutdown_event->raise(true); return; } diff --git a/sunshine/crypto.cpp b/sunshine/crypto.cpp index d1f2e55c..d109cc51 100644 --- a/sunshine/crypto.cpp +++ b/sunshine/crypto.cpp @@ -3,7 +3,6 @@ // #include "crypto.h" -#include #include namespace crypto { using big_num_t = util::safe_ptr; diff --git a/sunshine/crypto.h b/sunshine/crypto.h index 30de5495..a8599507 100644 --- a/sunshine/crypto.h +++ b/sunshine/crypto.h @@ -6,8 +6,6 @@ #define SUNSHINE_CRYPTO_H #include -#include -#include #include #include #include diff --git a/sunshine/httpcommon.cpp b/sunshine/httpcommon.cpp index e30d1d68..24106aa0 100644 --- a/sunshine/httpcommon.cpp +++ b/sunshine/httpcommon.cpp @@ -1,3 +1,5 @@ +#define BOOST_BIND_GLOBAL_PLACEHOLDERS + #include "process.h" #include