mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fix compilation issues
This commit is contained in:
1 parent
c1beceb24b
commit
3dc698eccd
4 files changed
+17
-10
No files matched your search
+3
-3
@@ -431,15 +431,15 @@ int doconnect(struct clientparam * param){
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#ifdef SO_BINDTODEVICE
|
||||
#if defined SO_BINDTODEVICE
|
||||
if(param->srv->obindtodevice) {
|
||||
if(so._setsockopt(param->remsock, SOL_SOCKET, SO_BINDTODEVICE, param->srv->obindtodevice, strlen(param->srv->obindtodevice) + 1))
|
||||
return 12;
|
||||
}
|
||||
#elseif IP_BOUND_IF
|
||||
#elif defined IP_BOUND_IF
|
||||
if(param->srv->obindtodevice) {
|
||||
int idx;
|
||||
idx = if_nametoindex(param->srv->obindtodevice)
|
||||
idx = if_nametoindex(param->srv->obindtodevice);
|
||||
if(!idx || so._setsockopt(param->remsock, IPPROTO_IP, IP_BOUND_IF, &idx, sizeof(idx)))
|
||||
return 12;
|
||||
#ifndef NOIPV6
|
||||
|
||||
Reference in new issue
Block a user