-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问支持hysteria协议吗? #3
Comments
目前上游 Xray 内核暂不支持 Hysteria 协议,目前 XProxy 还没有原生支持 Hysteria 内核,但可借助自定义命令额外启动一个 Hysteria 客户端来实现(存在一定的性能损失)。 首先在 XProxy工作目录的 {
"server": "example.com:12345",
"obfs": "...",
"up_mbps": 10,
"down_mbps": 50,
"socks5": {
"listen": "127.0.0.1:10086"
}
} 修改 XProxy 配置文件,添加如下字段: ...
custom:
pre:
- nohup hysteria -c config/hysteria.json >> log/hysteria.log 2>&1 &
... 修改 {
"outbounds": [
{
"tag": "hysteria",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 10086
}
]
}
}
]
} 在 Hysteria 项目下载预构建的可执行文件至本机,例如放置在 这样子配置后,XProxy 开启后会先启动 Hyteria 内核,暴露 socks5 接口给 Xray 内核中继,透明代理的流量将被送入 Xray 后转发至 Hyteria 再到远程服务器。 |
naiveproxy不能用是为什么,下载的naive客户端在docker中不能运行 |
目前naiveproxy用的是chromium的网络栈,基于C++开发,所以编译产物依赖glibc,XProxy的容器目前是基于musl的,直接运行存在符号缺失。 当然,由于openwrt系统也使用musl基础库,naiveproxy的release页面也提供了相应的版本(带openwrt字样),该版本可正常在容器中运行。 相关逻辑可参考这里。 |
RT
The text was updated successfully, but these errors were encountered: