diff options
author | lhchavez <lhchavez@lhchavez.com> | 2021-03-13 05:40:38 -0800 |
---|---|---|
committer | lhchavez <lhchavez@lhchavez.com> | 2021-03-13 05:40:38 -0800 |
commit | f9a8c4ccd5562128280a9996aed2b307d57c83f3 (patch) | |
tree | abc9c610e30c1bc09cb3ccb4f63467f6d2cf3205 /core/rfb.js | |
parent | 9ca337d3a805d241bf52071ade3d3bbff867bbcb (diff) | |
download | novnc-f9a8c4ccd5562128280a9996aed2b307d57c83f3.tar.gz |
Add VeNCrypt Plain authentication tests
This change adds tests for the VeNCrypt Plain authentication. In doing
that, this also fixes a typo that was introduced in a recent change.
Diffstat (limited to 'core/rfb.js')
-rw-r--r-- | core/rfb.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rfb.js b/core/rfb.js index 3b52c29..876255b 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -1455,13 +1455,13 @@ export default class RFB extends EventTargetMixin { this._sock.send([ (user.length >> 24) & 0xFF, (user.length >> 16) & 0xFF, - (user.legnth >> 8) & 0xFF, + (user.length >> 8) & 0xFF, user.length & 0xFF ]); this._sock.send([ (pass.length >> 24) & 0xFF, (pass.length >> 16) & 0xFF, - (pass.legnth >> 8) & 0xFF, + (pass.length >> 8) & 0xFF, pass.length & 0xFF ]); this._sock.sendString(user); |