[Varnish] #948: Using multiple client.ip calls results in duplicate match_acl_anon_* definitions
Varnish
varnish-bugs at varnish-cache.org
Wed Jun 29 18:50:18 CEST 2011
#948: Using multiple client.ip calls results in duplicate match_acl_anon_*
definitions
-----------------------+----------------------------------------------------
Reporter: mademedia | Type: defect
Status: new | Priority: normal
Milestone: | Component: build
Version: 3.0.0 | Severity: normal
Keywords: client.ip |
-----------------------+----------------------------------------------------
Attempts to use client.ip more than once result in multiple declarations
of match_acl_anon_*
VCL:
{{{
# Backend definition
backend default {
.host = "127.0.0.1";
.port = "8080";
}
sub vcl_recv {
if(client.ip != "1.2.3.4" && client.ip != "5.6.7.8"){
error 403 "Website unavailable";
}
}
}}}
Output from debug compile:
{{{
Message from C-compiler:
./vcl.pIxaTHp7.c:456: error: redefinition of ‘match_acl_anon_1’
./vcl.pIxaTHp7.c:425: error: previous definition of ‘match_acl_anon_1’ was
here
Running C-compiler failed, exit 1
}}}
Submitted at the request of PHK in IRC. Version installed was "varnishd
(varnish-3.0.0 revision 3bd5997)" installed from RHEL repo.
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/948>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list