if (l > 5 && !strcmp(".conf", & ep->d_name[ l - 5 ])) {
free(fname);
xasprintf(&fname, "%s/%s", dname, ep->d_name);
- logger(LOG_DEBUG, "Reading conf file \"%s\"", fname);
x = read_config_file(config_tree, fname);
}
}
if(!c->node) {
if(c->outgoing && proxytype == PROXY_SOCKS4 && c->allow_request == ID) {
if(c->buffer[0] == 0 && c->buffer[1] == 0x5a) {
- logger(LOG_DEBUG, "Proxy request granted");
+ ifdebug(CONNECTIONS) logger(LOG_DEBUG, "Proxy request granted");
} else {
logger(LOG_ERR, "Proxy request rejected");
return false;
return false;
}
if(c->buffer[3] == 0) {
- logger(LOG_DEBUG, "Proxy request granted");
+ ifdebug(CONNECTIONS) logger(LOG_DEBUG, "Proxy request granted");
} else {
- logger(LOG_DEBUG, "Proxy request rejected");
+ logger(LOG_ERR, "Proxy request rejected");
return false;
}
} else {
if(fork()) {
c->socket = fd[0];
close(fd[1]);
- logger(LOG_DEBUG, "Using proxy %s", command);
+ ifdebug(CONNECTIONS) logger(LOG_DEBUG, "Using proxy %s", command);
return;
}