|
|
@ -1107,6 +1107,7 @@ static struct option long_options[] = { |
|
|
|
{"killold", no_argument, 0, 'k'}, |
|
|
|
{"killold", no_argument, 0, 'k'}, |
|
|
|
{"loglevel", required_argument, 0, 'l'}, |
|
|
|
{"loglevel", required_argument, 0, 'l'}, |
|
|
|
{"name", required_argument, 0, 'n'}, |
|
|
|
{"name", required_argument, 0, 'n'}, |
|
|
|
|
|
|
|
{"passthrough", no_argument, 0, 'P'}, |
|
|
|
{"proxy", no_argument, 0, 'p'}, |
|
|
|
{"proxy", no_argument, 0, 'p'}, |
|
|
|
{"ckdb-sockdir",required_argument, 0, 'S'}, |
|
|
|
{"ckdb-sockdir",required_argument, 0, 'S'}, |
|
|
|
{"sockdir", required_argument, 0, 's'}, |
|
|
|
{"sockdir", required_argument, 0, 's'}, |
|
|
@ -1179,7 +1180,14 @@ int main(int argc, char **argv) |
|
|
|
case 'n': |
|
|
|
case 'n': |
|
|
|
ckp.name = optarg; |
|
|
|
ckp.name = optarg; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case 'P': |
|
|
|
|
|
|
|
if (ckp.proxy) |
|
|
|
|
|
|
|
quit(1, "Cannot set both proxy and passthrough mode"); |
|
|
|
|
|
|
|
ckp.passthrough = true; |
|
|
|
|
|
|
|
break; |
|
|
|
case 'p': |
|
|
|
case 'p': |
|
|
|
|
|
|
|
if (ckp.passthrough) |
|
|
|
|
|
|
|
quit(1, "Cannot set both passthrough and proxy mode"); |
|
|
|
ckp.proxy = true; |
|
|
|
ckp.proxy = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'S': |
|
|
|
case 'S': |
|
|
|