diff --git a/CMakeLists.txt b/CMakeLists.txt index 28deb15..3580836 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.13) -project(owsec VERSION 2.11.0) +project(owsec VERSION 3.0.0) set(CMAKE_CXX_STANDARD 17) diff --git a/build b/build index da2d398..d8263ee 100644 --- a/build +++ b/build @@ -1 +1 @@ -14 \ 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 94185e0..5d517d9 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 6664981..6ebf457 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 9c618b8..5ceebb6 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();