mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-18 22:09:35 +08:00
fix last commit
This commit is contained in:
parent
ee0392ed03
commit
7ab59c754b
@ -338,7 +338,6 @@ int put_crc32(char * s,int &len)
|
|||||||
|
|
||||||
int do_cook(char * data,int &len)
|
int do_cook(char * data,int &len)
|
||||||
{
|
{
|
||||||
if(disable_checksum)return 0;
|
|
||||||
put_crc32(data,len);
|
put_crc32(data,len);
|
||||||
if(!disable_obscure)do_obscure(data,len);
|
if(!disable_obscure)do_obscure(data,len);
|
||||||
if(!disable_xor)encrypt_0(data,len,key_string);
|
if(!disable_xor)encrypt_0(data,len,key_string);
|
||||||
@ -367,8 +366,8 @@ int de_cook(char * s,int &len)
|
|||||||
}
|
}
|
||||||
int rm_crc32(char * s,int &len)
|
int rm_crc32(char * s,int &len)
|
||||||
{
|
{
|
||||||
|
if(disable_checksum)return 0;
|
||||||
assert(len>=0);
|
assert(len>=0);
|
||||||
|
|
||||||
len-=sizeof(u32_t);
|
len-=sizeof(u32_t);
|
||||||
if(len<0) return -1;
|
if(len<0) return -1;
|
||||||
u32_t crc32_in=read_u32(s+len);
|
u32_t crc32_in=read_u32(s+len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user