View | Details | Raw Unified | Return to bug 54651
Collapse All | Expand All

(-)modules/metadata/mod_remoteip.c (-2 / +2 lines)
Lines 246-259 Link Here
246
246
247
    while (remote) {
247
    while (remote) {
248
248
249
        /* verify c->client_addr is trusted if there is a trusted proxy list
249
        /* Verify user agent IP against the trusted proxy list.
250
         */
250
         */
251
        if (config->proxymatch_ip) {
251
        if (config->proxymatch_ip) {
252
            int i;
252
            int i;
253
            remoteip_proxymatch_t *match;
253
            remoteip_proxymatch_t *match;
254
            match = (remoteip_proxymatch_t *)config->proxymatch_ip->elts;
254
            match = (remoteip_proxymatch_t *)config->proxymatch_ip->elts;
255
            for (i = 0; i < config->proxymatch_ip->nelts; ++i) {
255
            for (i = 0; i < config->proxymatch_ip->nelts; ++i) {
256
                if (apr_ipsubnet_test(match[i].ip, c->client_addr)) {
256
                if (apr_ipsubnet_test(match[i].ip, temp_sa)) {
257
                    internal = match[i].internal;
257
                    internal = match[i].internal;
258
                    break;
258
                    break;
259
                }
259
                }

Return to bug 54651