summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_http.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index 37c27325..665ccdbf 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -273,10 +273,15 @@ typedef struct {
} nxt_http_proto_table_t;
-struct nxt_http_client_ip_s {
- nxt_http_route_addr_rule_t *source;
+typedef struct {
nxt_str_t *header;
uint32_t header_hash;
+} nxt_http_forward_header_t;
+
+
+struct nxt_http_forward_s {
+ nxt_http_forward_header_t client_ip;
+ nxt_http_route_addr_rule_t *source;
uint8_t recursive; /* 1 bit */
};