set_frame_masking_key is default in websocket client mode

This commit is contained in:
zhengshuxin 2019-09-17 18:31:03 +08:00
parent 4ac0748114
commit 31283e4207

View File

@ -50,9 +50,9 @@ websocket& websocket::reset(void)
header_.rsv2 = false; header_.rsv2 = false;
header_.rsv3 = false; header_.rsv3 = false;
header_.opcode = FRAME_TEXT; header_.opcode = FRAME_TEXT;
header_.mask = false; // header_.mask = false;
header_.payload_len = 0; header_.payload_len = 0;
header_.masking_key = 0; // header_.masking_key = 0;
payload_nread_ = 0; payload_nread_ = 0;
payload_nsent_ = 0; payload_nsent_ = 0;