idz: Ignore ServerBox traffic
This commit is contained in:
@@ -48,6 +48,12 @@ function writeServerHello(aesKey: Buffer, rsaKey: RsaKey): Buffer {
|
|||||||
function readClientHello(buf: Buffer) {
|
function readClientHello(buf: Buffer) {
|
||||||
const magic = buf.readUInt32LE(0x00);
|
const magic = buf.readUInt32LE(0x00);
|
||||||
|
|
||||||
|
if (magic === 0xFE78571D) {
|
||||||
|
throw new Error(
|
||||||
|
"Server Box data, ignore."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (magic !== 0x01020304) {
|
if (magic !== 0x01020304) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"Invalid magic number, cryptographic processing probably incorrect."
|
"Invalid magic number, cryptographic processing probably incorrect."
|
||||||
|
|||||||
Reference in New Issue
Block a user