Home
last modified time | relevance | path

Searched refs:client_ip (Results 1 – 6 of 6) sorted by relevance

/unit/test/
H A Dtest_client_ip.py8 def client_ip(self, options): member in TestClientIP
48 self.client_ip(
60 self.client_ip({'header': 'X-Forwarded-For', 'source': '127.0.0.1'})
70 self.client_ip({'header': 'X-Forwarded-For', 'source': '!127.0.0.1'})
76 self.client_ip({'header': 'X-Forwarded-For', 'source': '127.0.0.1'})
89 self.client_ip({'header': 'X-Forwarded-For', 'source': '::1'})
102 self.client_ip({'header': 'X-Forwarded-For', 'source': 'unix'})
114 self.client_ip(
147 self.client_ip({'header': 'x-forwarded-for', 'source': '127.0.0.1'})
152 self.client_ip({'header': 'X-Forwarded-For', 'source': []})
/unit/src/
H A Dnxt_http_request.c325 if (skcf->client_ip != NULL) { in nxt_http_request_start()
326 ret = nxt_http_request_forward(task, r, skcf->client_ip); in nxt_http_request_start()
348 nxt_http_forward_header_t *client_ip, *protocol; in nxt_http_request_forward() local
355 client_ip = &forward->client_ip; in nxt_http_request_forward()
358 if (client_ip->header != NULL) { in nxt_http_request_forward()
373 && f->hash == client_ip->header_hash in nxt_http_request_forward()
375 && f->name_length == client_ip->header->length in nxt_http_request_forward()
376 && nxt_memcasecmp(f->name, client_ip->header->start, in nxt_http_request_forward()
377 client_ip->header->length) == 0) in nxt_http_request_forward()
H A Dnxt_router.h203 nxt_http_forward_t *client_ip; member
H A Dnxt_http.h286 nxt_http_forward_header_t client_ip; member
H A Dnxt_conf_validation.c2374 nxt_conf_value_t *client_ip, *protocol; in nxt_conf_vldt_forwarded() local
2379 client_ip = nxt_conf_get_object_member(value, &client_ip_str, NULL); in nxt_conf_vldt_forwarded()
2382 if (client_ip == NULL && protocol == NULL) { in nxt_conf_vldt_forwarded()
H A Dnxt_router.c1966 skcf->client_ip = nxt_router_conf_forward(task, mp, conf); in nxt_router_conf_create()
1967 if (nxt_slow_path(skcf->client_ip == NULL)) { in nxt_router_conf_create()
2239 &forward->client_ip); in nxt_router_conf_forward()