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

大量未注销的session会导致您的账号存在异常 #18

Open
Shinku-Chen opened this issue Oct 26, 2022 · 3 comments
Open

大量未注销的session会导致您的账号存在异常 #18

Shinku-Chen opened this issue Oct 26, 2022 · 3 comments

Comments

@Shinku-Chen
Copy link

Shinku-Chen commented Oct 26, 2022

如果重插网线,重新拨号的情况下
sigterm() 里的 xlnetacc_logout 无法正常请求导致当前session无法注销
下次提速 speedup server already speed up
如果有多个session无法注销,会导致账号被锁定
因此希望能够修改
sigterm()里的xlnetacc_logout,加入retry

sigterm() {
_log "trap sigterm, exit" $(( 1 | 4 ))
xlnetacc_logout 100 && sleep 3s
rm -f "$down_state_file" "$up_state_file"
exit 0
}

@Shinku-Chen
Copy link
Author

使用
http://${interface_ip}:${interface_port}/v2/recover?peerid=${_peerid}&userid=${_userid}
拼接恢复地址将未下线客户端下线即可

因为_peerid每次不同,因此需要吧日志中的_peerid妥善保管

@Shinku-Chen
Copy link
Author

似乎迅雷那边24小时候也会自动注销

@Shinku-Chen
Copy link
Author

最好的办法是
通过配置文件与username 生成_peerid
尽量保证_peerid不会变化

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

No branches or pull requests

1 participant