Page MenuHomePhabricator

D6490.id21733.diff
No OneTemporary

D6490.id21733.diff

diff --git a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h
--- a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h
+++ b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h
@@ -27,6 +27,7 @@
static const std::string OPTION_NOTIFS_APNS_TOPIC;
static const std::string OPTION_NOTIFS_FCM_SERVER_KEY;
static const std::string OPTION_SESSIONS_SKIP_AUTH_KEY;
+ static const std::string OPTION_DISABLE_NOTIFS_KEY;
static ConfigManager &getInstance();
void load();
diff --git a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp
--- a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp
+++ b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp
@@ -33,6 +33,8 @@
"notifications.fcm_server_key";
const std::string ConfigManager::OPTION_SESSIONS_SKIP_AUTH_KEY =
"sessions.skip_authentication";
+const std::string ConfigManager::OPTION_DISABLE_NOTIFS_KEY =
+ "notifications.disable";
ConfigManager &ConfigManager::getInstance() {
static ConfigManager instance;
@@ -114,6 +116,9 @@
this->OPTION_NOTIFS_FCM_SERVER_KEY.c_str(),
boost::program_options::value<std::string>()->required(),
"Firebase Cloud Messaging server key for Android notifications");
+ description.add_options()(
+ this->OPTION_DISABLE_NOTIFS_KEY.c_str(),
+ "Disable push notifications mechanism");
description.add_options()(
this->OPTION_SESSIONS_SKIP_AUTH_KEY.c_str(),

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 8:15 PM (13 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495286
Default Alt Text
D6490.id21733.diff (1 KB)

Event Timeline