mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 14:25:44 +00:00
Save destination address
This commit is contained in:
parent
a35039e6d7
commit
4b48ba353f
1
desync.c
1
desync.c
@ -162,7 +162,6 @@ int desync(int sfd, char *buffer,
|
||||
return fake_attack(sfd, buffer, n, type, pos, fa);
|
||||
|
||||
case DESYNC_DISORDER:
|
||||
printf("disorder attack\n");
|
||||
return disorder_attack(sfd, buffer, n, pos, fa);
|
||||
|
||||
case DESYNC_SPLIT:
|
||||
|
3
proxy.c
3
proxy.c
@ -333,6 +333,7 @@ int create_conn(struct poolhd *pool,
|
||||
}
|
||||
val->pair = pair;
|
||||
pair->pair = val;
|
||||
pair->in6 = dst->in6;
|
||||
pair->flag = FLAG_CONN;
|
||||
return 0;
|
||||
}
|
||||
@ -503,7 +504,7 @@ static inline int on_data(struct eval *val, char *buffer, size_t bfsize)
|
||||
return -1;
|
||||
}
|
||||
if (desync(val->pair->fd, buffer,
|
||||
n, (struct sockaddr *)&val->in6)) {
|
||||
n, (struct sockaddr *)&val->pair->in6)) {
|
||||
return -1;
|
||||
}
|
||||
val->type = EV_TUNNEL;
|
||||
|
Loading…
Reference in New Issue
Block a user