From: Fabian Keil Date: Sun, 17 Jul 2011 13:52:11 +0000 (+0000) Subject: Make sure --privoxy-address works with IPv6 addresses containing brackets, too X-Git-Tag: v_3_0_18~159 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=373d3f0c809b7940d0de03fe245061f2801b9dd5 Make sure --privoxy-address works with IPv6 addresses containing brackets, too --- diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl index 6e977ac6..25207999 100755 --- a/tools/privoxy-regression-test.pl +++ b/tools/privoxy-regression-test.pl @@ -7,7 +7,7 @@ # A regression test "framework" for Privoxy. For documentation see: # perldoc privoxy-regression-test.pl # -# $Id: privoxy-regression-test.pl,v 1.75 2011/06/29 18:36:24 fabiankeil Exp $ +# $Id: privoxy-regression-test.pl,v 1.212 2011/07/17 13:49:52 fk Exp $ # # Wish list: # @@ -1210,8 +1210,9 @@ sub get_page_with_curl ($) { my $retries_left = get_cli_option('retries') + 1; my $failure_reason; - $curl_line .= ' --proxy ' . $proxy if (defined $proxy); - + if (defined $proxy) { + $curl_line .= ' --proxy ' . quote($proxy); + } # We want to see the HTTP status code $curl_line .= " --include "; # Let Privoxy emit two log messages less.