Well, I was trying to update version 2.0.3 into version 2.0.6 but when starting
pound it exits with this message "HAport is supported only for INET back-ends".
Looking at config.c, isn't there a bug there?
Shouldn't it be "if(res->domain != PF_INET) {" instead of
"if(res->domain == PF_INET) {" ?
If you check the next lines you see that there's a first if statement which
uses "!=" for the Port directive... but for the HAport the same if has "=="...
} else if(!regexec(&Port, lin, 4, matches, 0)) {
if(res->domain != PF_INET) {
logmsg(LOG_ERR, "Port is supported only for INET back-ends\n");
exit(1);
}
res->addr.sin_port = (in_port_t)htons(atoi(lin +
matches[1].rm_so));
has_port = 1;
} else if(!regexec(&Priority, lin, 4, matches, 0)) {
res->priority = atoi(lin + matches[1].rm_so);
} else if(!regexec(&TimeOut, lin, 4, matches, 0)) {
res->to = atoi(lin + matches[1].rm_so);
} else if(!regexec(&HAport, lin, 4, matches, 0)) {
if(res->domain == PF_INET) {
logmsg(LOG_ERR, "HAport is supported only for INET
back-ends\n");
exit(1);
}
|