# hcpp **Repository Path**: californiacat/hcpp ## Basic Information - **Project Name**: hcpp - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-28 - **Last Updated**: 2024-08-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: httptunnel, cpp20, asio ## README ### hcpp 可以访问某些资源,这些资源在一些时候访问,会受到干扰 即,使用doh发现合适的ip,然后在进行tls握手时关闭sni扩展 起源于[dev-sidecar](https://github.com/docmirror/dev-sidecar) #### 来自帮助 [beast](https://github.com/boostorg/beast) [harddns](https://github.com/stealth/harddns) [openssl-sign-by-ca](https://github.com/zozs/openssl-sign-by-ca/) ### 编译 需要c++20 - linux下使用clang>16. 例如,在archlinux下需要安装下述依赖 ```bash sudo pacman -S clang spdlog fmt asio openssl xmake pkgconf git unzip --needed ``` 其他发行版对应安装 - windows使用最新msvc编译器,安装xmake.最好安装`windows terminal` --- linux下打开`终端`或者windows下打开`windows terminal` ```shell #下载依赖库时,可以设置github镜像代理 xmake g --proxy_pac=github_mirror.lua #编译 xmake -vDrw hcpp #运行 xmake run hcpp ``` #### 运行 当前会在配置文件指定的目录(例如 ~/.config/hcpp/)下生成自签名的ca密钥和ca证书 浏览器需要信任该ca证书 使用curl直接进行测试 ```shell curl -i -x http://localhost:55555 -v --cacert ~/.config/hcpp/ca.cert.pem 'https://gitee.com' ``` 或者 ```shell curl -i -x http://localhost:55555 -vk 'https://gitee.com' ``` ### 开发(DEV) 通常,编译要求满足后不需要其他配置,不过你可以通过使用vscode的dev container在docker容器中进行开发,那么点击下面的连接 If you already have VS Code and Docker installed, you can click the badge [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/dayu521/hcpp) to get started