From 4b48ba353f5a95a7c1d082f0094be18ab936aa02 Mon Sep 17 00:00:00 2001 From: ruti <> Date: Wed, 12 Jul 2023 09:15:43 +0200 Subject: [PATCH] Save destination address --- desync.c | 1 - proxy.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/desync.c b/desync.c index 7fa20c6..cc313f7 100644 --- a/desync.c +++ b/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: diff --git a/proxy.c b/proxy.c index 29117ac..f541072 100644 --- a/proxy.c +++ b/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;