ASF Bugzilla – Attachment 34101 Details for
Bug 59938
Expose remote host port as an expression
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Potential patch
59938.patch (text/plain), 1.27 KB, created by
Hank Ibell
on 2016-08-03 16:01:53 UTC
(
hide
)
Description:
Potential patch
Filename:
MIME Type:
Creator:
Hank Ibell
Created:
2016-08-03 16:01:53 UTC
Size:
1.27 KB
patch
obsolete
>Index: docs/manual/expr.xml >=================================================================== >--- docs/manual/expr.xml (revision 1754984) >+++ docs/manual/expr.xml (working copy) >@@ -230,6 +230,8 @@ > "<code>GET /index.html HTTP/1.1</code>")</td></tr> > <tr><td><code>REMOTE_ADDR</code></td> > <td>The IP address of the remote host</td></tr> >+ <tr><td><code>REMOTE_PORT</code></td> >+ <td>The port of the remote host</td></tr> > <tr><td><code>REMOTE_HOST</code></td> > <td>The host name of the remote host</td></tr> > <tr><td><code>REMOTE_USER</code></td> >Index: server/util_expr_eval.c >=================================================================== >--- server/util_expr_eval.c (revision 1754984) >+++ server/util_expr_eval.c (working copy) >@@ -1456,6 +1456,7 @@ > "SERVER_PROTOCOL_VERSION", /* 29 */ > "SERVER_PROTOCOL_VERSION_MAJOR", /* 30 */ > "SERVER_PROTOCOL_VERSION_MINOR", /* 31 */ >+ "REMOTE_PORT", /* 32 */ > NULL > }; > >@@ -1562,6 +1563,8 @@ > 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 59938
: 34101