Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

[Bug] version = 1 跟 lazy = true 同时开启时,客户端迅速崩溃 #170

Closed
kousyougi opened this issue Nov 4, 2022 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@kousyougi
Copy link

Describe the bug【描述 bug】
version = 1 跟 lazy = true 同时开启时,客户端迅速崩溃

To Reproduce【如何复现该bug】
在伺服器端跟客户端设定 version = 1 跟 lazy = true

Envs (please complete the following information):【系统环境】
Linux

Config file 【配置文件,客户端服务端配置都提供】

服务器端

[[listen]]
protocol = "vlesss"
uuid = "a684455c-b14f-11ea-bf0d-42010aaa0003"
host = "0.0.0.0"
port = 443
version = 1
fallback = "123.123.123.123:80"
cert = "cert.cer"
key = "cert.key"
lazy = true
[[dial]]
protocol = "direct"

客户端

[[listen]]
protocol = "socks5"
host = "0.0.0.0"
port = 1080
[[dial]]
protocol = "vlesss"
uuid = "a684455c-b14f-11ea-bf0d-42010aaa0003"
host = "domain.com"
lazy = true
port = 443
version = 1
utls = true

Debug Log 【Debug日志, 客户端 和 服务端 的 日志 都提供】

客户端

===============================
verysimple v1.2.4-beta.6, go1.18.7 linux arm64, with advLayer packages: [quic ws grpcSimple]
===============================
A very simple implementation of V2Ray with some innovation
===============================
2022-11-04 18:24:26.194 INFO    Program started
2022-11-04 18:24:26.194 INFO    zap log init complete.  {"logfile": "/etc/verysimple/vs_log_client"}
2022-11-04 18:24:26.194 INFO    Working at      {"dir": "/etc/verysimple"}
Log Level:1
2022-11-04 18:24:26.194 INFO    Options {"Log Level": "info", "UseReadv": true}
2022-11-04 18:24:26.194 INFO    Using uTls and Chrome fingerprint for   {"host": "domain.com"}
2022-11-04 18:24:26.204 INFO    Listening       {"protocol": "tcp+socks5", "listen_addr": "0.0.0.0:1080", "defaultClient": "tcp+tls+lazy+vless_1", "dial_addr": "domain.com:443"}
2022-11-04 18:24:29.541 INFO    New Accepted Conn       {"connid": 421617, "from": "192.168.0.11:53794", "handler": "tcp+socks5://0.0.0.0:1080"}
2022-11-04 18:24:29.553 INFO    Request {"connid": 421617, "From": "192.168.0.11:53794", "Target": "tcp://bats.video.yahoo.com:443", "through": "tcp+tls+lazy+vless_1://domain.com:443"}
panic: interface conversion: *tlsLayer.Conn is not netLayer.ConnWrapper: missing method GetRawConn

goroutine 7 [running]:
github.com/e1732a364fed/v2ray_simple.tryTlsLazyRawRelay(0x66ef1, 0x0, {0xffff644c7b00?, 0x40001a0900}, {0x0?, 0x0}, {{0x0, 0x0}, {0x0, 0x0}, ...}, ...)
        github.com/e1732a364fed/v2ray_simple/tls_lazy.go:93 +0x458
github.com/e1732a364fed/v2ray_simple.dialClient_andRelay({0x66ef1, {0x8c8f68, 0x400000e270}, {0x8c8f68, 0x400000e270}, {0x8caa40, 0x40000324b0}, {0x8cbb78, 0x40001a0900}, 0x0, ...}, ...)
        github.com/e1732a364fed/v2ray_simple/main.go:1500 +0x820
github.com/e1732a364fed/v2ray_simple.passToOutClient({0x66ef1, {0x8c8f68, 0x400000e270}, {0x8c8f68, 0x400000e270}, {0x8caa40, 0x40000324b0}, {0x8cbb78, 0x40001a0900}, 0x0, ...}, ...)
        github.com/e1732a364fed/v2ray_simple/main.go:971 +0x1f60
github.com/e1732a364fed/v2ray_simple.handshakeInserver_and_passToOutClient({0x66ef1, {0x8c8f68, 0x400000e270}, {0x8c8f68, 0x400000e270}, {0x8caa40, 0x40000324b0}, {0x8cbb78, 0x40001a0900}, 0x0, ...})
        github.com/e1732a364fed/v2ray_simple/main.go:521 +0x1ec
github.com/e1732a364fed/v2ray_simple.handleNewIncomeConnection({0x8caa40, 0x40000324b0}, {0x8cbb78, 0x40001a0900}, {0x8c8f68, 0x400000e270}, 0xd61920)
        github.com/e1732a364fed/v2ray_simple/main.go:371 +0xeb8
github.com/e1732a364fed/v2ray_simple.ListenSer.func2({0x8c8f68?, 0x400000e270?})
        github.com/e1732a364fed/v2ray_simple/main.go:141 +0x4c
created by github.com/e1732a364fed/v2ray_simple/netLayer.loopAccept
        github.com/e1732a364fed/v2ray_simple/netLayer/listen.go:63 +0x27c

服务器端

===============================
verysimple v1.2.4-beta.6, go1.18.7 linux amd64, with advLayer packages: [ws grpcSimple quic]
===============================
A very simple implementation of V2Ray with some innovation
===============================
2022-11-04 18:24:28.535 INFO    Program started
2022-11-04 18:24:28.536 INFO    zap log init complete.  {"logfile": "/etc/verysimple/vs_log_server"}
2022-11-04 18:24:28.536 INFO    Working at      {"dir": "/etc/verysimple"}
Log Level:1
2022-11-04 18:24:28.536 INFO    Options {"Log Level": "info", "UseReadv": true}
2022-11-04 18:24:28.539 INFO    Listening       {"protocol": "tcp+tls+lazy+vless", "listen_addr": "0.0.0.0:443", "defaultClient": "direct", "dial_addr": ""}
2022-11-04 18:24:29.652 INFO    New Accepted Conn       {"connid": 760238, "from": "123.123.123.123:50350", "handler": "tcp+tls+lazy+vless://0.0.0.0:443"}
2022-11-04 18:24:29.804 INFO    Request {"connid": 760238, "From": "123.123.123.123:50350", "Target": "tcp://bats.video.yahoo.com:443", "through": "tcp+direct://"}

Other 【其他】
另外想要请问 vless 的 version = 1 跟 0 差在哪?version = 1 有比较安全吗?

@kousyougi kousyougi added the bug Something isn't working label Nov 4, 2022
@e1732a364fed
Copy link
Owner

收到,马上修复。

@e1732a364fed
Copy link
Owner

测了还是不行。。再改

@e1732a364fed
Copy link
Owner

这回好了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants