diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-03-21 16:22:46 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-03-21 16:22:46 +0200 |
commit | 0774e8317694461a0d16ec365d70be08f6554c92 (patch) | |
tree | fccbe7ca9f585487bd769fecb3ca09b07a9d4046 | |
parent | 38b9f8aecf80d5e002e3684b72a17cd0dafe9e33 (diff) | |
download | vmod-remoteip-0774e8317694461a0d16ec365d70be08f6554c92.tar.gz vmod-remoteip-0774e8317694461a0d16ec365d70be08f6554c92.tar.bz2 |
Fix typos in the docs.
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | src/vmod_remoteip.vcc | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -31,8 +31,8 @@ An example of using this module: | |||
31 | } | 31 | } |
32 | 32 | ||
33 | sub vcl_recv { | 33 | sub vcl_recv { |
34 | set resp.http.x-real-ip = remoteip.get(resp.http.X-Forwarded-For); | 34 | set req.http.x-real-ip = remoteip.get(req.http.X-Forwarded-For); |
35 | if (std.ip(resp.http.x-real-ip) ~ allowed) { | 35 | if (std.ip(req.http.x-real-ip) ~ allowed) { |
36 | ... | 36 | ... |
37 | } | 37 | } |
38 | } | 38 | } |
diff --git a/src/vmod_remoteip.vcc b/src/vmod_remoteip.vcc index b46aef5..55b161e 100644 --- a/src/vmod_remoteip.vcc +++ b/src/vmod_remoteip.vcc | |||
@@ -48,7 +48,7 @@ EXAMPLE | |||
48 | } | 48 | } |
49 | 49 | ||
50 | sub vcl_recv { | 50 | sub vcl_recv { |
51 | set resp.http.x-real-ip = remoteip.get(resp.http.X-Forwarded-For); | 51 | set req.http.x-real-ip = remoteip.get(req.http.X-Forwarded-For); |
52 | ... | 52 | ... |
53 | } | 53 | } |
54 | 54 | ||