Varnish module configuration

2020-11-15 Thread Marco Shaw
https://metacpan.org/source/RCL/Varnish-CLI-0.03/lib%2FVarnish%2FCLI.pm I don't know if I'm doing something wrong. I'm trying to use this CLI against an upgraded Varnish server and it seems the new version is built with a secret being required to connect remotely. I think the relevant sections a

Re: Varnish module configuration

2020-11-15 Thread Marco Shaw
OK, so I found a spot where the module is loaded from and a new object is created: my $varnish = Varnish::CLI->new( host=> $VarnishHost, port=> $self->{VarnishAdminPort} // 6082, secret => $self->{VarnishSecret}

Re: Varnish module configuration

2020-11-15 Thread Andrew Solomon
'//' is the defined-or operator. See https://stackoverflow.com/a/12911432/870552 On Sun, Nov 15, 2020 at 11:08 AM Marco Shaw wrote: > > OK, so I found a spot where the module is loaded from and a new object is > created: > > my $varnish = Varnish::CLI->new( host=> $VarnishHost, >

Re: Varnish module configuration

2020-11-15 Thread Jim Gibson
> On Nov 15, 2020, at 2:42 AM, Marco Shaw wrote: > > https://metacpan.org/source/RCL/Varnish-CLI-0.03/lib%2FVarnish%2FCLI.pm > > I don't know if I'm doing something wrong. I'm trying to use this CLI > against an upgraded Varnish server and it seems the new version is built with > a secret b