Save destination address

This commit is contained in:
ruti 2023-07-12 09:15:43 +02:00
parent a35039e6d7
commit 4b48ba353f
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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;