mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fix deadcode / warnings / minor bugs
This commit is contained in:
1 parent
44c47ee7d9
commit
4877b39f2c
24 files changed
+49
-145
No files matched your search
+1
-14
@@ -53,7 +53,6 @@ void * sockschild(struct clientparam* param) {
|
||||
int ver=0;
|
||||
int havepass = 0;
|
||||
PROXYSOCKADDRTYPE sin;
|
||||
int len;
|
||||
|
||||
|
||||
param->service = S_SOCKS;
|
||||
@@ -212,19 +211,7 @@ void * sockschild(struct clientparam* param) {
|
||||
param->operation = command == 2?BIND:UDPASSOC;
|
||||
if(command == 2){
|
||||
if ((param->remsock=param->srv->so._socket(param->sostate, SASOCK(¶m->req), SOCK_STREAM, IPPROTO_TCP)) == INVALID_SOCKET) {RETURN (11);}
|
||||
#ifdef REUSE
|
||||
{
|
||||
int opt;
|
||||
#ifdef SO_REUSEADDR
|
||||
opt = 1;
|
||||
param->srv->so._setsockopt(param->sostate, param->remsock, SOL_SOCKET, SO_REUSEADDR, (unsigned char *)&opt, sizeof(int));
|
||||
#endif
|
||||
#ifdef SO_REUSEPORT
|
||||
opt = 1;
|
||||
param->srv->so._setsockopt(param->sostate, param->remsock, SOL_SOCKET, SO_REUSEPORT, (unsigned char *)&opt, sizeof(int));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
setopts(param->remsock, param->srv->lissockopts);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user