Commit 2b94cd5e authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

v1 actually forwards traffic for v2

Remains of copy/pasta made that v2 listened with PROXY protocol which is
not needed. It's a passive instance that only does health checking using
a probe.
parent 3adc381f
...@@ -2,16 +2,16 @@ varnishtest "Sending proxy headers via health probes" ...@@ -2,16 +2,16 @@ varnishtest "Sending proxy headers via health probes"
# Double-proxy scheme stolen from o00002.vtc # Double-proxy scheme stolen from o00002.vtc
# Get ${v1_addr} defined so s1 can use it so v1 can use ${s1_addr} # Get ${v2_addr} defined so s1 can use it
varnish v1 -proto PROXY -vcl {backend foo { .host = ":80"; }} -start varnish v2 -arg "-b '${bad_backend}'" -start
server s1 { server s1 {
rxreq rxreq
expect req.http.x-forwarded-for == ${v1_addr} expect req.http.x-forwarded-for == ${v2_addr}
txresp txresp
} -start } -start
varnish v1 -vcl+backend { varnish v1 -proto PROXY -vcl+backend {
import debug; import debug;
sub vcl_recv { sub vcl_recv {
...@@ -19,9 +19,9 @@ varnish v1 -vcl+backend { ...@@ -19,9 +19,9 @@ varnish v1 -vcl+backend {
return (synth(400)); return (synth(400));
} }
} }
} } -start
varnish v2 -proto PROXY -vcl { varnish v2 -vcl {
import std; import std;
probe default { probe default {
...@@ -44,7 +44,7 @@ varnish v2 -proto PROXY -vcl { ...@@ -44,7 +44,7 @@ varnish v2 -proto PROXY -vcl {
# dummy backend ref # dummy backend ref
if (bp2) { } if (bp2) { }
} }
} -start }
server s1 -wait server s1 -wait
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment