Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492537
D6524.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
604 B
Referenced Files
None
Subscribers
None
D6524.diff
View Options
diff --git a/services/tunnelbroker/src/libcpp/src/Tools/Tools.cpp b/services/tunnelbroker/src/libcpp/src/Tools/Tools.cpp
--- a/services/tunnelbroker/src/libcpp/src/Tools/Tools.cpp
+++ b/services/tunnelbroker/src/libcpp/src/Tools/Tools.cpp
@@ -25,6 +25,10 @@
}
bool validateDeviceID(std::string deviceID) {
+ if (config::ConfigManager::getInstance().isParameterSet(
+ config::ConfigManager::OPTION_DISABLE_DEVICEID_VALIDATION)) {
+ return true;
+ }
try {
static const std::regex deviceIDKeyserverRegexp("^ks:.*");
if (std::regex_match(deviceID, deviceIDKeyserverRegexp)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 12:13 AM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679302
Default Alt Text
D6524.diff (604 B)
Attached To
Mode
D6524: [services] Tunnelbroker - Skipping `deviceID` validation in tools function
Attached
Detach File
Event Timeline
Log In to Comment