Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3485315
D6490.id22996.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6490.id22996.diff
View Options
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
@@ -29,6 +29,7 @@
static const std::string OPTION_SESSIONS_SKIP_AUTH_KEY;
static const std::string OPTION_DISABLE_DEVICEID_VALIDATION;
static const std::string OPTION_MESSAGES_SKIP_PERSISTENCE;
+ 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
@@ -37,6 +37,8 @@
"sessions.disable_deviceid_validation";
const std::string ConfigManager::OPTION_MESSAGES_SKIP_PERSISTENCE =
"messages.skip_persistence";
+const std::string ConfigManager::OPTION_DISABLE_NOTIFS_KEY =
+ "notifications.disable";
ConfigManager &ConfigManager::getInstance() {
static ConfigManager instance;
@@ -118,6 +120,10 @@
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(),
+ boost::program_options::value<bool>()->default_value(false),
+ "Disable push notifications mechanism");
description.add_options()(
this->OPTION_SESSIONS_SKIP_AUTH_KEY.c_str(),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 7:55 PM (8 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2674582
Default Alt Text
D6490.id22996.diff (1 KB)
Attached To
Mode
D6490: [services] Tunnelbroker - Add disable notifications config parameter
Attached
Detach File
Event Timeline
Log In to Comment