Support for 'extip' and 'smtp' parent types added

This commit is contained in:
z3APA3A committed 2016-02-05 01:52:45 +03:00
1 parent 9db88313c7
commit 3cc9796583
5 files changed
+18 -13

No files matched your search

+6 -4
View File
@@ -674,12 +674,14 @@ int doconnect(struct clientparam * param){
}
#endif
if(SAISNULL(&param->sinsl)){
#ifndef NOIPV6
if(*SAFAMILY(&param->sinsr) == AF_INET6) memcpy(&param->sinsl, &param->srv->extsa6, sizeof(param->srv->extsa6));
else
if(*SAFAMILY(&param->sinsr) == AF_INET6) memcpy(&param->sinsl, &param->srv->extsa6, sizeof(param->srv->extsa6));
else
#endif
memcpy(&param->sinsl, &param->srv->extsa, sizeof(param->srv->extsa));
*SAPORT(&param->sinsl) = 0;
memcpy(&param->sinsl, &param->srv->extsa, sizeof(param->srv->extsa));
*SAPORT(&param->sinsl) = 0;
}
if(so._bind(param->remsock, (struct sockaddr*)&param->sinsl, SASIZE(&param->sinsl))==-1) {
return 12;
}