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;