update some documentation

This commit is contained in:
Martin Michelsen
2022-11-30 23:40:12 -08:00
parent 0828029051
commit f622c9c91e
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ enum BehaviorFlag {
ENABLE_STATUS_MESSAGES = 0x00000010,
LOAD_CARD_TEXT = 0x00000020,
ENABLE_RECORDING = 0x00000040,
ENABLE_MASKING = 0x00000080,
DISABLE_MASKING = 0x00000080,
};
+1 -1
View File
@@ -149,7 +149,7 @@ void Server::send(const void* data, size_t size) const {
}
string masked_data;
if (this->base()->data_index->behavior_flags & BehaviorFlag::ENABLE_MASKING) {
if (!(this->base()->data_index->behavior_flags & BehaviorFlag::DISABLE_MASKING)) {
if (size >= 8) {
masked_data.assign(reinterpret_cast<const char*>(data), size);
uint8_t mask_key = (random_object<uint32_t>() % 0xFF) + 1;