1 Star 0 Fork 0

californiacat / hcpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

hcpp

可以访问某些资源,这些资源在一些时候访问,会受到干扰

即,使用doh发现合适的ip,然后在进行tls握手时关闭sni扩展

起源于dev-sidecar

来自帮助

beast

harddns

openssl-sign-by-ca

编译

需要c++20

  • linux下使用clang>16.

    例如,在archlinux下需要安装下述依赖

    sudo pacman -S clang spdlog fmt asio openssl xmake pkgconf git unzip --needed

    其他发行版对应安装

  • windows使用最新msvc编译器,安装xmake.最好安装windows terminal


linux下打开终端或者windows下打开windows terminal

#下载依赖库时,可以设置github镜像代理
xmake g --proxy_pac=github_mirror.lua
#编译
xmake -vDrw hcpp
#运行
xmake run hcpp

运行

当前会在配置文件指定的目录(例如 ~/.config/hcpp/)下生成自签名的ca密钥和ca证书

浏览器需要信任该ca证书

使用curl直接进行测试

curl -i -x http://localhost:55555 -v --cacert ~/.config/hcpp/ca.cert.pem  'https://gitee.com' 

或者

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 to get started

MIT License Copyright (c) 2024 avril's fans Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
C++ 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/californiacat/hcpp.git
git@gitee.com:californiacat/hcpp.git
californiacat
hcpp
hcpp
master

搜索帮助