去掉xray对allowInsecure的报错 by Hermes 对接 mimo-v2.5-pro
前言
我们已经实现了用自然语言指导 Hermes 对接 mimo-v2.5-pro 帮我们裁剪 xray
那么, 对原版xray做个小改动不是应该更轻松吗?
之前xray对allowInsecure报错影响了很多人.
如果我们对xray原版小改一下, 不报这个错呢?
面向GPT开发
Hermes 对接 mimo-v2.5-pro
以下内容为向 Agent 发的自然语言
准备对 https://github.com/xtls/Xray-core/ 项目做一个小改动.
你把项目按最新 release tag clone 到本地, 不要放 tmp 目录, 会有进一步的分析和修改.
我们发过去写好了客户端hy2出站的配置文件
当我加载这一份 客户端 配置文件时, 报错
Failed to start: main: failed to load config files: [configTest5399724284136231556.json] > infra/conf: failed to build outbound config with tag proxy10829 > infra/conf: failed to build stream settings for outbound detour > infra/conf: Failed to build TLS config. > common/errors: The feature "allowInsecure" has been removed and migrated to "pinnedPeerCertSha256". Please update your config(s) according to release note and documentation.本地socks5代理和 http代理无法使用.
请分析原因, 并给出修改方案.
Agent 分析了一大堆. 我们不看.
同意, 请实施.
然后 Agent 忙啊忙啊, 说完成了. 我们提醒TA用刚刚发的配置文件验证.
用我的配置文件测试 本地socks5代理和http代理是否正常工作.
Agent 测试通过.
那我们自己也实际测试一下
交叉编译一份 win10 amd64 的结果
然后把编译结果放到自己电脑上面的 v2rayN v7.22.4, 替换掉原来的 xray.exe
测试功能正常.
把修改后的 xray 上传到 github fork
发布 release
Github
Code
https://github.com/crazypeace/Xray-core-allowInsecure
Release
https://github.com/crazypeace/Xray-core-allowInsecure/releases/tag/v26.3.27-allowInsecure

评论
发表评论