summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2020-03-21 14:22:46 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2020-03-21 14:22:46 (GMT)
commit0774e8317694461a0d16ec365d70be08f6554c92 (patch) (side-by-side diff)
treefccbe7ca9f585487bd769fecb3ca09b07a9d4046
parent38b9f8aecf80d5e002e3684b72a17cd0dafe9e33 (diff)
downloadvmod-remoteip-0774e8317694461a0d16ec365d70be08f6554c92.tar.gz
vmod-remoteip-0774e8317694461a0d16ec365d70be08f6554c92.tar.bz2
Fix typos in the docs.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--README4
-rw-r--r--src/vmod_remoteip.vcc2
2 files changed, 3 insertions, 3 deletions
diff --git a/README b/README
index 18e8653..30140c4 100644
--- a/README
+++ b/README
@@ -31,8 +31,8 @@ An example of using this module:
}
sub vcl_recv {
- set resp.http.x-real-ip = remoteip.get(resp.http.X-Forwarded-For);
- if (std.ip(resp.http.x-real-ip) ~ allowed) {
+ set req.http.x-real-ip = remoteip.get(req.http.X-Forwarded-For);
+ if (std.ip(req.http.x-real-ip) ~ allowed) {
...
}
}
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
}
sub vcl_recv {
- set resp.http.x-real-ip = remoteip.get(resp.http.X-Forwarded-For);
+ set req.http.x-real-ip = remoteip.get(req.http.X-Forwarded-For);
...
}

Return to:

Send suggestions and report system problems to the System administrator.