mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-09-17 04:34:27 +08:00
changed iptables -A to -I, auth_mode: simple
This commit is contained in:
12
network.cpp
12
network.cpp
@@ -1051,13 +1051,10 @@ int recv_raw_tcp(raw_info_t &raw_info,char * &payload,int &payloadlen)
|
||||
}
|
||||
else
|
||||
{
|
||||
mylog(log_info,"tcph->doff= %u\n",tcph->doff);
|
||||
}
|
||||
if(tcph->rst==1)
|
||||
{
|
||||
mylog(log_error,"rst==1\n");
|
||||
//mylog(log_info,"tcph->doff= %u\n",tcph->doff);
|
||||
}
|
||||
|
||||
|
||||
recv_info.ack=tcph->ack;
|
||||
recv_info.syn=tcph->syn;
|
||||
recv_info.rst=tcph->rst;
|
||||
@@ -1068,6 +1065,11 @@ int recv_raw_tcp(raw_info_t &raw_info,char * &payload,int &payloadlen)
|
||||
recv_info.ack_seq=ntohl(tcph->ack_seq);
|
||||
recv_info.psh=tcph->psh;
|
||||
|
||||
if(tcph->rst==1)
|
||||
{
|
||||
mylog(log_error,"[%s,%d]rst==1\n",my_ntoa(recv_info.src_ip),recv_info.src_port);
|
||||
}
|
||||
|
||||
/* if(recv_info.has_ts)
|
||||
{
|
||||
send_info.ts_ack=recv_info.ts; //////////////////////////////////////////////modify
|
||||
|
Reference in New Issue
Block a user