Skip to content
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

redirect+relay+quic报错 #20

Closed
PHCSJC opened this issue Mar 19, 2022 · 2 comments
Closed

redirect+relay+quic报错 #20

PHCSJC opened this issue Mar 19, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@PHCSJC
Copy link

PHCSJC commented Mar 19, 2022

gost-v3 -L=redirect://:1090 -F=relay+quic://aaa:bbb@1.2.3.4:5555
iptable -t nat -A OUTPUT -d 8.8.8.8/32 -p tcp -j REDIRECT --to-ports 1090

启动可以,但只要一执行下面的命令就报错退出
dig youtube.com @8.8.8.8 +tcp

报错信息:
{"handler":"redirect","kind":"handler","level":"info","listener":"tcp","local":"127.0.0.1:1090","msg":"192.168.2.1:55699 <> 127.0.0.1:1090","remote":"192.168.2.1:55699","service":"service-0","time":"2022-03-19T14:05:28+08:00"}
{"handler":"redirect","kind":"handler","level":"error","listener":"tcp","local":"127.0.0.1:1090","msg":"wrong connection type, must be TCP","remote":"192.168.2.1:55699","service":"service-0","time":"2022-03-19T14:05:28+08:00"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xdfbaeb]

@cod1ingcoding
Copy link

貌似是有这个问题,测试了beta1,确实。

@ginuerzh ginuerzh added the bug Something isn't working label Mar 24, 2022
@ginuerzh
Copy link
Member

ginuerzh commented Mar 31, 2022

最新的代码已经修复。另外增加了对TCP TProxy和SO_MARK的支持。
https://latest.gost.run/tutorials/redirect/

@PHCSJC PHCSJC closed this as completed Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants