Fixes
This commit is contained in:
parent
f1d7df548a
commit
be658061e8
|
@ -94,7 +94,7 @@ export default class RFB extends EventTargetMixin {
|
||||||
this._rfbCredentials = options.credentials || {};
|
this._rfbCredentials = options.credentials || {};
|
||||||
this._shared = 'shared' in options ? !!options.shared : true;
|
this._shared = 'shared' in options ? !!options.shared : true;
|
||||||
this._repeaterID = options.repeaterID || '';
|
this._repeaterID = options.repeaterID || '';
|
||||||
this._wsProtocols = options.wsProtocols || [];
|
this._wsProtocols = options.wsProtocols || ['binary'];
|
||||||
|
|
||||||
// Internal state
|
// Internal state
|
||||||
this._rfbConnectionState = '';
|
this._rfbConnectionState = '';
|
||||||
|
@ -1575,7 +1575,7 @@ export default class RFB extends EventTargetMixin {
|
||||||
if (this._sock.rQwait("auth challenge", 16)) { return false; }
|
if (this._sock.rQwait("auth challenge", 16)) { return false; }
|
||||||
|
|
||||||
// KasmVNC uses basic Auth, clear the VNC password, which is not used
|
// KasmVNC uses basic Auth, clear the VNC password, which is not used
|
||||||
this._rfb_credentials.password = "";
|
this._rfbCredentials.password = "";
|
||||||
|
|
||||||
// TODO(directxman12): make genDES not require an Array
|
// TODO(directxman12): make genDES not require an Array
|
||||||
const challenge = Array.prototype.slice.call(this._sock.rQshiftBytes(16));
|
const challenge = Array.prototype.slice.call(this._sock.rQshiftBytes(16));
|
||||||
|
@ -1940,12 +1940,12 @@ export default class RFB extends EventTargetMixin {
|
||||||
encs.push(encodings.pseudoEncodingCursor);
|
encs.push(encodings.pseudoEncodingCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportsCursorURIs() && this._fb_depth == 24){
|
//if (supportsCursorURIs() && this._fb_depth == 24){
|
||||||
// Allow the user to attempt using a local cursor even if they are using a touch device. KASM-395
|
// Allow the user to attempt using a local cursor even if they are using a touch device. KASM-395
|
||||||
if (this.preferLocalCursor || !isTouchDevice){
|
if (this.preferLocalCursor || !isTouchDevice){
|
||||||
encs.push(encodings.pseudoEncodingCursor)
|
encs.push(encodings.pseudoEncodingCursor)
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
|
|
||||||
RFB.messages.clientEncodings(this._sock, encs);
|
RFB.messages.clientEncodings(this._sock, encs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue