summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/util_expr_eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/util_expr_eval.c b/server/util_expr_eval.c
index 7d2f2669ac..e08c4d2ac1 100644
--- a/server/util_expr_eval.c
+++ b/server/util_expr_eval.c
@@ -1456,6 +1456,7 @@ static const char *request_var_names[] = {
"SERVER_PROTOCOL_VERSION", /* 29 */
"SERVER_PROTOCOL_VERSION_MAJOR", /* 30 */
"SERVER_PROTOCOL_VERSION_MINOR", /* 31 */
+ "REMOTE_PORT", /* 32 */
NULL
};
@@ -1562,6 +1563,8 @@ static const char *request_var_fn(ap_expr_eval_ctx_t *ctx, const void *data)
case 9: return "9";
}
return apr_psprintf(ctx->p, "%d", HTTP_VERSION_MINOR(r->proto_num));
+ case 32:
+ return apr_psprintf(ctx->p, "%u", ctx->c->client_addr->port);
default:
ap_assert(0);
return NULL;