diff --git a/CMakeLists.txt b/CMakeLists.txt index 18ef5e3c..3f0c2947 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.13) -project(owgw VERSION 2.11.0) +project(owgw VERSION 3.0.0) set(CMAKE_CXX_STANDARD 17) diff --git a/build b/build index 4800c7da..d8263ee9 100644 --- a/build +++ b/build @@ -1 +1 @@ -58 \ No newline at end of file +2 \ No newline at end of file diff --git a/src/framework/MicroService.cpp b/src/framework/MicroService.cpp index 94185e0c..5d517d9f 100644 --- a/src/framework/MicroService.cpp +++ b/src/framework/MicroService.cpp @@ -231,7 +231,7 @@ namespace OpenWifi { "logging.format", "%Y-%m-%d %H:%M:%S.%i %s: [%p][thr:%I] %t"); auto UseAsyncLogs_ = MicroService::instance().ConfigGetBool("logging.asynch", true); auto DisableWebSocketLogging = - MicroService::instance().ConfigGetBool("logging.websocket.disable", true); + MicroService::instance().ConfigGetBool("logging.websocket", false); if (LoggingDestination == "null") { Poco::AutoPtr DevNull(new Poco::NullChannel); diff --git a/src/framework/MicroServiceFuncs.cpp b/src/framework/MicroServiceFuncs.cpp index 66649813..6ebf457d 100644 --- a/src/framework/MicroServiceFuncs.cpp +++ b/src/framework/MicroServiceFuncs.cpp @@ -129,4 +129,8 @@ namespace OpenWifi { return ALBHealthCheckServer()->RegisterExtendedHealthMessage(Callback); } + std::string MicroServiceAccessKey() { + return MicroService::instance().Hash(); + } + } // namespace OpenWifi diff --git a/src/framework/MicroServiceFuncs.h b/src/framework/MicroServiceFuncs.h index 9c618b89..5ceebb6c 100644 --- a/src/framework/MicroServiceFuncs.h +++ b/src/framework/MicroServiceFuncs.h @@ -22,6 +22,7 @@ namespace OpenWifi { std::string MicroServicePublicEndPoint(); std::string MicroServiceConfigGetString(const std::string &Key, const std::string &DefaultValue); + std::string MicroServiceAccessKey(); bool MicroServiceConfigGetBool(const std::string &Key, bool DefaultValue); std::uint64_t MicroServiceConfigGetInt(const std::string &Key, std::uint64_t DefaultValue); std::string MicroServicePrivateEndPoint();