v0.7.0
- Async support - Added RMF content-type - Better file extension detection - Clarify installation instructions - Update README.md - Remove encryption keys from wtv-home:/home - Decode URI for support for files with urlencoded elements - Fixed MSTV Sim compatiblity - Fix a typo - Add nobind feature to configure external services - Add url accessor to wtv-home:/home for non-internal builds - Add wtv-tricks:/access?url= - Very initial HTTP Proxy work (won't work yet)
This commit is contained in:
@@ -264,7 +264,12 @@ class WTVSec {
|
||||
if (!this.RC4Session[session_id]) {
|
||||
this.NewRC4Session(session_id);
|
||||
}
|
||||
return this.RC4Session[session_id].update(Buffer.from(this.wordArrayToUint8Array(data)));
|
||||
if (data.words) {
|
||||
data = new Buffer.from(this.wordArrayToUint8Array(data));
|
||||
} else if (data.constructor === ArrayBuffer) {
|
||||
data = new Buffer.from(data);
|
||||
}
|
||||
return this.RC4Session[session_id].update(data);
|
||||
}
|
||||
|
||||
Decrypt(keynum, data) {
|
||||
@@ -283,7 +288,12 @@ class WTVSec {
|
||||
if (!this.RC4Session[session_id]) {
|
||||
this.NewRC4Session(session_id);
|
||||
}
|
||||
return this.RC4Session[session_id].update(Buffer.from(this.wordArrayToUint8Array(data)));
|
||||
if (data.words) {
|
||||
data = new Buffer.from(this.wordArrayToUint8Array(data));
|
||||
} else if (data.constructor === ArrayBuffer) {
|
||||
data = new Buffer.from(data);
|
||||
}
|
||||
return this.RC4Session[session_id].update(data);
|
||||
}
|
||||
|
||||
Test() {
|
||||
|
||||
Reference in New Issue
Block a user