Searched refs:client_ip (Results 1 – 6 of 6) sorted by relevance
/unit/test/ |
H A D | test_client_ip.py | 7 def client_ip(self, options): member in TestClientIP 35 self.client_ip( 47 self.client_ip({'header': 'X-Forwarded-For', 'source': '127.0.0.1'}) 57 self.client_ip({'header': 'X-Forwarded-For', 'source': '!127.0.0.1'}) 63 self.client_ip({'header': 'X-Forwarded-For', 'source': '127.0.0.1'}) 76 self.client_ip({'header': 'X-Forwarded-For', 'source': '::1'}) 89 self.client_ip( 122 self.client_ip({'header': 'x-forwarded-for', 'source': '127.0.0.1'}) 127 self.client_ip({'header': 'X-Forwarded-For', 'source': []})
|
/unit/src/ |
H A D | nxt_http_request.c | 319 if (skcf->client_ip != NULL) { in nxt_http_request_start() 320 ret = nxt_http_request_forward(task, r, skcf->client_ip); in nxt_http_request_start() 342 nxt_http_forward_header_t *client_ip, *protocol; in nxt_http_request_forward() local 349 client_ip = &forward->client_ip; in nxt_http_request_forward() 352 if (client_ip->header != NULL) { in nxt_http_request_forward() 367 && f->hash == client_ip->header_hash in nxt_http_request_forward() 369 && f->name_length == client_ip->header->length in nxt_http_request_forward() 370 && nxt_memcasecmp(f->name, client_ip->header->start, in nxt_http_request_forward() 371 client_ip->header->length) == 0) in nxt_http_request_forward()
|
H A D | nxt_router.h | 201 nxt_http_forward_t *client_ip; member
|
H A D | nxt_http.h | 283 nxt_http_forward_header_t client_ip; member
|
H A D | nxt_conf_validation.c | 2352 nxt_conf_value_t *client_ip, *protocol; in nxt_conf_vldt_forwarded() local 2357 client_ip = nxt_conf_get_object_member(value, &client_ip_str, NULL); in nxt_conf_vldt_forwarded() 2360 if (client_ip == NULL && protocol == NULL) { in nxt_conf_vldt_forwarded()
|
H A D | nxt_router.c | 1901 skcf->client_ip = nxt_router_conf_forward(task, mp, conf); in nxt_router_conf_create() 1902 if (nxt_slow_path(skcf->client_ip == NULL)) { in nxt_router_conf_create() 2192 &forward->client_ip); in nxt_router_conf_forward()
|