apr_sockaddr_ip_getbuf(buf, sizeof(buf), prev->addr);
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, new,
- "ProxyProtocolFilter: previous setting for %s:%hu from virtual "
+ "ProxyProtocol: previous setting for %s:%hu from virtual "
"host {%s:%hu in %s} is being overriden by virtual host "
"{%s:%hu in %s}; new setting is '%s'",
buf, prev->addr->port, prev->source->server_hostname,
for (info = conf->enabled; info; info = info->next) {
apr_sockaddr_ip_getbuf(buf, sizeof(buf), info->addr);
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, s,
- "ProxyProtocolFilter: enabled on %s:%hu", buf, info->addr->port);
+ "ProxyProtocol: enabled on %s:%hu", buf, info->addr->port);
}
for (info = conf->disabled; info; info = info->next) {
apr_sockaddr_ip_getbuf(buf, sizeof(buf), info->addr);
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, s,
- "ProxyProtocolFilter: disabled on %s:%hu", buf, info->addr->port);
+ "ProxyProtocol: disabled on %s:%hu", buf, info->addr->port);
}
return OK;
}
static const command_rec proxy_protocol_cmds[] = {
- AP_INIT_FLAG("ProxyProtocolFilter", pp_enable_proxy_protocol, NULL, RSRC_CONF,
+ AP_INIT_FLAG("ProxyProtocol", pp_enable_proxy_protocol, NULL, RSRC_CONF,
"Enable proxy-protocol handling (`on', `off')"),
{ NULL }
};
}
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c,
- "ProxyProtocolFilter: enabled on connection to %s:%hu",
+ "ProxyProtocol: enabled on connection to %s:%hu",
c->local_ip, c->local_addr->port);
/* this holds the resolved proxy info for this connection */
word = apr_strtok(NULL, " ", &saveptr); \
if (!word) { \
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c, \
- "ProxyProtocolFilter: no " field " found in header '%s'", \
+ "ProxyProtocol: no " field " found in header '%s'", \
hdr->v1.line); \
return HDR_ERROR; \
}
}
else {
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c,
- "ProxyProtocolFilter: unknown family '%s' in header '%s'",
+ "ProxyProtocol: unknown family '%s' in header '%s'",
word, hdr->v1.line);
return HDR_ERROR;
}
if (strspn(word, valid_addr_chars) != strlen(word)) {
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c,
- "ProxyProtocolFilter: invalid client-address '%s' found in "
+ "ProxyProtocol: invalid client-address '%s' found in "
"header '%s'", word, hdr->v1.line);
return HDR_ERROR;
}
GET_NEXT_WORD("client-port")
if (sscanf(word, "%hu", &port) != 1) {
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c,
- "ProxyProtocolFilter: error parsing port '%s' in header '%s'",
+ "ProxyProtocol: error parsing port '%s' in header '%s'",
word, hdr->v1.line);
return HDR_ERROR;
}
if (ret != APR_SUCCESS) {
conn_conf->client_addr = NULL;
ap_log_cerror(APLOG_MARK, APLOG_ERR, ret, c,
- "ProxyProtocolFilter: error converting family '%d', host '%s',"
+ "ProxyProtocol: error converting family '%d', host '%s',"
" and port '%hu' to sockaddr; header was '%s'",
family, host, port, hdr->v1.line);
return HDR_ERROR;
if (ret != APR_SUCCESS) {
conn_conf->client_addr = NULL;
ap_log_cerror(APLOG_MARK, APLOG_ERR, ret, c,
- "ProxyProtocolFilter: error creating sockaddr");
+ "ProxyProtocol: error creating sockaddr");
return HDR_ERROR;
}
if (ret != APR_SUCCESS) {
conn_conf->client_addr = NULL;
ap_log_cerror(APLOG_MARK, APLOG_ERR, ret, c,
- "ProxyProtocolFilter: error creating sockaddr");
+ "ProxyProtocol: error creating sockaddr");
return HDR_ERROR;
}
default:
/* not a supported command */
ap_log_cerror(APLOG_MARK, APLOG_ERR, ret, c,
- "ProxyProtocolFilter: unsupported command %.2hx",
+ "ProxyProtocol: unsupported command %.2hx",
hdr->v2.ver_cmd);
return HDR_ERROR;
}
if (ret != APR_SUCCESS) {
conn_conf->client_addr = NULL;
ap_log_cerror(APLOG_MARK, APLOG_ERR, ret, c,
- "ProxyProtocolFilter: error converting address to string");
+ "ProxyProtocol: error converting address to string");
return HDR_ERROR;
}
}
else {
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c,
- "ProxyProtocolFilter: no valid header found");
+ "ProxyProtocol: no valid header found");
return -1;
}
}
}
else {
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, f->c,
- "ProxyProtocolFilter: internal error: unknown version "
+ "ProxyProtocol: internal error: unknown version "
"%d", ctx->version);
f->c->aborted = 1;
apr_brigade_destroy(ctx->bb);
/* we only get here when done == 1 */
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, f->c,
- "ProxyProtocolFilter: received valid header: %s:%hu",
+ "ProxyProtocol: received valid header: %s:%hu",
conn_conf->client_ip, conn_conf->client_addr->port);
if (ctx->rcvd > ctx->need || !APR_BRIGADE_EMPTY(ctx->bb)) {
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, f->c,
- "ProxyProtocolFilter: internal error: have data left over; "
+ "ProxyProtocol: internal error: have data left over; "
" need=%lu, rcvd=%lu, brigade-empty=%d", ctx->need,
ctx->rcvd, APR_BRIGADE_EMPTY(ctx->bb));
f->c->aborted = 1;