mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-27 07:59:41 +08:00
Minor cleanups
This commit is contained in:
1 parent
381ef993a7
commit
05c4832c6c
11 files changed
+216
-177
No files matched your search
+3
-1
@@ -201,11 +201,13 @@ int udpsockmap(struct clientparam *param, int timeo)
|
||||
sendlen = len + hdrsize;
|
||||
} else if (nhops >= 2) {
|
||||
int off = 0, k;
|
||||
int bad = 0;
|
||||
for (k = 1; k < nhops; k++) {
|
||||
int next = socks5_udp_skip_hdr(param->srvbuf + off, len - off);
|
||||
if (next < 0) break;
|
||||
if (next < 0) { bad = 1; break; }
|
||||
off += next;
|
||||
}
|
||||
if (bad) continue;
|
||||
sendoff = off;
|
||||
sendlen = len - off;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user