cty123 / TrojanRust

Trojan-rust is a rust implementation for Trojan protocol that is targeted to circumvent GFW. This implementation focus on performance and stability above everything else.
MIT License
112 stars 24 forks source link

请问当前版本QUIC协议是否可用 #19

Closed xiyuan-code closed 1 year ago

xiyuan-code commented 1 year ago

你好,你代码写的真漂亮,尤其代码设计很清晰,请问当前版本QUIC协议还在完善中吗?我在mac中测试启动server 发现设置的端口未启动。配置如下:

{
    "inbound": {
        "protocol": "TROJAN",
        "address": "0.0.0.0",
        "secret": "123123",
        "port": 8032,
        "tls": {
            "cert_path": "./config/cert.pem",
            "key_path": "./config/key.pem"
        },
        "mode": "QUIC"
    },
    "outbound": {
        "mode": "DIRECT",
        "protocol": "DIRECT"
    }
}
cty123 commented 1 year ago

确认可用,没开起来可能是因为某些错误,怀疑是

"cert_path": "./config/cert.pem",
"key_path": "./config/key.pem"

没有使用绝对路径,你可以使用 RUST_LOG=info 来打开日志功能,参考https://github.com/cty123/TrojanRust/tree/main/example/quic_trojan

cty123 commented 1 year ago

最新版本的服务端可以用QUIC了,测试了一段时间,没发现问题。客户端还没测试完,建议不要使用。

xiyuan-code commented 1 year ago

谢谢,安装实例配置服务端端口启动成功了,客户端貌似还不通。