Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_conf_validation.c2379 nxt_conf_value_t *client_ip, *protocol; in nxt_conf_vldt_forwarded() local
2384 client_ip = nxt_conf_get_object_member(value, &client_ip_str, NULL); in nxt_conf_vldt_forwarded()
2387 if (client_ip == NULL && protocol == NULL) { in nxt_conf_vldt_forwarded()
H A Dnxt_http.h283 nxt_http_forward_header_t client_ip; member
H A Dnxt_http_request.c319 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 Dnxt_router.c1880 skcf->client_ip = nxt_router_conf_forward(task, mp, conf); in nxt_router_conf_create()
1881 if (nxt_slow_path(skcf->client_ip == NULL)) { in nxt_router_conf_create()
2148 &forward->client_ip); in nxt_router_conf_forward()
H A Dnxt_router.h203 nxt_http_forward_t *client_ip; member
/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': []})