fix precess args

This commit is contained in:
fancy
2020-05-16 14:12:44 +08:00
parent a16cefbfb2
commit 39275452da

View File

@@ -19,10 +19,7 @@ int main(int argc, char *argv[]){
error("usage: cgnoproxy [--debug] <CMD>\nexample: cgnoproxy curl -I https://www.google.com");
exit(EXIT_FAILURE);
}
if (argv[1]=="--debug"){
enable_debug=true;
shift+=1;
}
processArgs(argc,argv,shift);
if (!attach2cgproxy()){
error("attach process failed");