(server) server should not mask data when sending to client (some python client libraries enforce that and assert)

This commit is contained in:
Benjamin Sergeant
2019-03-22 09:53:56 -07:00
parent 68a53aa884
commit 4ef3073ca4
2 changed files with 38 additions and 18 deletions

View File

@ -100,6 +100,10 @@ namespace ix
uint8_t masking_key[4];
};
// Tells whether we should mask the data we send.
// client should mask but server should not
bool _useMask;
// Buffer for reading from our socket. That buffer is never resized.
std::vector<uint8_t> _readbuf;