mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-01-07 13:07:56 +08:00
rename .h to .hpp
This commit is contained in:
10
cgproxy.cpp
10
cgproxy.cpp
@@ -1,5 +1,5 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include "socket_client.h"
|
||||
#include "socket_client.hpp"
|
||||
using json = nlohmann::json;
|
||||
using namespace CGPROXY;
|
||||
|
||||
@@ -15,10 +15,10 @@ bool attach2cgproxy(){
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
int shift=1;
|
||||
// if (argc==1){
|
||||
// error("usage: cgproxy [--debug] <CMD>\nexample: cgroxy curl -I https://www.google.com");
|
||||
// exit(EXIT_FAILURE);
|
||||
// }
|
||||
if (argc==1){
|
||||
error("usage: cgproxy [--debug] <CMD>\nexample: cgroxy curl -I https://www.google.com");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
processArgs(argc,argv,shift);
|
||||
|
||||
if (!attach2cgproxy()){
|
||||
|
||||
Reference in New Issue
Block a user