Merge pull request #47 from kasmtech/bugfix/KASM-1815_DO_websocket

Bugfix/kasm 1815 do websocket
This commit is contained in:
mmcclaskey 2021-08-18 05:22:54 -04:00 committed by GitHub
commit 6f2805e186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -583,7 +583,7 @@ int parse_handshake(ws_ctx_t *ws_ctx, char *handshake) {
headers->host[end-start] = '\0';
headers->origin[0] = '\0';
start = strstr(handshake, "\r\nOrigin: ");
start = strcasestr(handshake, "\r\nOrigin: ");
if (start) {
start += 10;
} else {

View File

@ -273,6 +273,11 @@ void VNCServerST::removeSocket(network::Socket* sock) {
std::list<VNCSConnectionST*>::iterator ci;
for (ci = clients.begin(); ci != clients.end(); ci++) {
if ((*ci)->getSock() == sock) {
if (clipboardClient == *ci)
handleClipboardAnnounce(*ci, false);
clipboardRequestors.remove(*ci);
// - Delete the per-Socket resources
delete *ci;