mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
SOCKSv5 parent udp support (initial, untested)
This commit is contained in:
1 parent
8107f03062
commit
314503d8df
6 files changed
+270
-116
No files matched your search
+1
-1
@@ -930,7 +930,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
if(udplen <= 0) continue;
|
||||
_3proxy_sem_lock(udpinit);
|
||||
if(hashresolv(&udp_table, &defparam, &toparam, NULL)) {
|
||||
socksendto(toparam, toparam->remsock, (struct sockaddr *)&toparam->sinsr, udpbuf, udplen, 0);
|
||||
srv.so._sendto(toparam->sostate, toparam->remsock, (char *)udpbuf, udplen, 0, (struct sockaddr *)&toparam->sinsr, SASIZE(&toparam->sinsr));
|
||||
_3proxy_sem_unlock(udpinit);
|
||||
toparam->statscli64 += udplen;
|
||||
toparam->nwrites++;
|
||||
|
||||
Reference in new issue
Block a user