You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2011/11/22 14:40:59 UTC
svn commit: r1204990 - /httpd/httpd/trunk/server/util_expr_eval.c
Author: minfrin
Date: Tue Nov 22 13:40:58 2011
New Revision: 1204990
URL: http://svn.apache.org/viewvc?rev=1204990&view=rev
Log:
Add the ability to access the connection level remote IP address from the
expression parser.
Modified:
httpd/httpd/trunk/server/util_expr_eval.c
Modified: httpd/httpd/trunk/server/util_expr_eval.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_expr_eval.c?rev=1204990&r1=1204989&r2=1204990&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_expr_eval.c (original)
+++ httpd/httpd/trunk/server/util_expr_eval.c Tue Nov 22 13:40:58 2011
@@ -1184,6 +1184,7 @@ static const char *conn_var_names[] = {
"HTTPS", /* 0 */
"IPV6", /* 1 */
"CONN_LOG_ID", /* 2 */
+ "CONN_REMOTE_ADDR", /* 3 */
NULL
};
@@ -1215,6 +1216,8 @@ static const char *conn_var_fn(ap_expr_e
#endif
case 2:
return c->log_id;
+ case 3:
+ return c->remote_ip;
default:
ap_assert(0);
return NULL;