]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
squidclient: Fix -A and -P options
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 12 Jan 2015 08:11:06 +0000 (00:11 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 12 Jan 2015 08:11:06 +0000 (00:11 -0800)
With --https addition the A and P values are re-used for --cert and
--params within HTTPS options. This works for long options, but they
cannot be listed as short options by the Transport:: module because
they are required at the top level by old-style HTTP parameters.

tools/squidclient/Transport.cc

index dd67bbdf672caa54de888e1850c2b28913910f51..a916d02d824db389ff60b9e46b8091d53fd4d005 100644 (file)
@@ -53,7 +53,7 @@ bool
 Transport::TheConfig::parseCommandOpts(int argc, char *argv[], int c, int &optIndex)
 {
     bool tls = false;
-    const char *shortOpStr = "A:C:h:l:p:P:T:?";
+    const char *shortOpStr = "h:l:p:T:?";
 
     // options for controlling squidclient transport connection
     static struct option longOptions[] = {