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

使用安卓客户端连接时,vps的ss进程会被强制终止 #62

Closed
Aniark opened this issue Aug 26, 2017 · 13 comments
Closed

使用安卓客户端连接时,vps的ss进程会被强制终止 #62

Aniark opened this issue Aug 26, 2017 · 13 comments
Assignees
Labels

Comments

@Aniark
Copy link

Aniark commented Aug 26, 2017

服务端系统:Debian 8
ss-rust版本:1.6.1

使用的加密:aes-256-gcm

桌面系统:win7sp1 64
桌面客户端版本:shadowsocks-windows 4.0.5

安卓系统:Android 5.1.1
安卓客户端版本:影梭 4.2.3

具体出现的问题:
在使用win客户端连接使用时,能正常使用
使用安卓客户端连接使用时,可能会在1~5分钟之内断开连接,登录vps检查ss进程时,发现ss进程已经消失

补充错误日志:
t3 6 2l9u4 jesbsgl2 e01
打码部分为我的ip

8.28补充:我关闭了服务端的udp转发,然后安卓客户端连接就不再出现上述现象了

@cssivision
Copy link
Contributor

cssivision commented Aug 27, 2017

this kind of errors is caused is mainly by wrong encryption method or wrong password, maybe need a nice error handler(for example, print the log) instead of just panic.

@zonyitoo
Copy link
Collaborator

zonyitoo commented Aug 29, 2017

The last log

Invalid Address type 243

indicates that server failed to decode a Shadowsocks packet properly.

I should fix this, it should not panic anyway.

And you said

我关闭了服务端的udp转发,然后安卓客户端连接就不再出现上述现象了

which means that there are bugs in UDP relay .. :( I should fix it.

@zonyitoo zonyitoo self-assigned this Aug 29, 2017
@zonyitoo zonyitoo added the bug label Aug 29, 2017
@zonyitoo
Copy link
Collaborator

@Aniark Please try the latest commit in master branch. It shouldn't crash.

@Aniark
Copy link
Author

Aniark commented Aug 29, 2017

@zonyitoo 抱歉,鄙人才粗学浅,并不会编译git。我只会解压使用release里的已经编译的文件

by the way,安卓影梭客户端昨天更新到4.2.4,使用该版本后也没有出现上述问题

@zonyitoo
Copy link
Collaborator

@zonyitoo
Copy link
Collaborator

Hmm, Nope. The file I just uploaded is the latest build. @Aniark you should just download my link.

@Aniark
Copy link
Author

Aniark commented Aug 30, 2017

@zonyitoo 链接点进去,是404 not found

@zonyitoo
Copy link
Collaborator

zonyitoo commented Aug 30, 2017

... fuc*, I will upload it again tonight. Or you can build one in your VPS. Just follow the instructions in README.

  1. Install rustup
  2. Clone.
  3. cd into project root
  4. cargo build --release
  5. Then you will see binaries in target folder

@Aniark
Copy link
Author

Aniark commented Aug 30, 2017

@zonyitoo 尝试过cargo build和docker build,最后因为报错太多和各种bug停止。我并非专业的程序员,没有专业的知识解决bug。我还是等待你的upload吧

@zonyitoo
Copy link
Collaborator

zonyitoo commented Aug 30, 2017

@Aniark
Copy link
Author

Aniark commented Aug 30, 2017

@zonyitoo 测试了影梭4.2.3 & 4.2.4,均不再出现上述问题

@zonyitoo
Copy link
Collaborator

Thanks alot! This fix will be released in 1.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants