Repository navigation
fix: 修正账号重启、重新导入与管理端来源判定 - #21
Merged
Merged
Conversation
- 让账号每次启动都取认证文件当前的 Cookie、续签材料与设置,验证、改代理与改设置后沿用运行中的会话 - 让 Chrome 导入、Cookie 导入与配对上传写入已导入的账号时沿用停用标记与未重新填写的固定代理 - 让 setup 在输出目录正被运行中的服务使用时退出,提示从管理端导入 - 放开非 Windows 系统上无设备绑定密钥账号的续签,去掉 refresh token 的固定长度检查 - 让一次 Chrome 导入任务的各账号共用账号发现结果与主密钥,没有选中账号时返回错误,导入页按 Profile 编号排列 - 校验配对上传的认证状态后原子写入认证目录 - 以本机反向代理转发的客户端地址判定本机访问、登录限流与请求记录 - 让修改代理对话框以账号固定代理的原文为初值,修改地址后保存时保留代理密码 - 合并代理脱敏、Cookie 转换与首轮初始化等待的重复实现,账号代理的密码统一显示为 xxxxx - 同步中英文 README 与开发文档 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mag1cFall
force-pushed
the
fix/account-import-lifecycle
branch
from
November 9, 2026 23:09
ca3400a to
6bec62e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
setup --remote重新上传,会清掉这个账号的固定代理和停用状态。gemini-web2api setup,命令显示成功,导入的内容随后被运行中的服务覆盖。%2A%2A%2A。修复
setup直接退出,并提示改用管理端的“导入账号”页;setup --remote照常可用。X-Forwarded-For中转发的客户端地址,本机访问判定、登录限流与请求记录都使用它;其他来源自报的地址不采信。README 的反向代理示例补上了proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;。setup --remote上传的内容先校验再写入认证目录。xxxxx,并合并了几处重复的代理脱敏与 Cookie 转换代码。测试
以下对照都在本机用真实账号完成,“修改前”为 v0.1.8。
setup --remote重新上传同一账号,修改前固定代理与停用状态都被清掉,修改后都保留。setup --cookie-file,修改前退出码为 0,导入的内容在点一次“验证”后被覆盖;修改后退出码为 1 并给出提示,账号文件没有变化。X-Forwarded-For: 203.0.113.5的管理端请求,修改前返回 200,修改后返回 403;开启登录后,一个地址输错 5 次密码,另一个地址用正确密码登录,修改前返回 429,修改后返回 200,输错的那个地址仍是 429。http://lab:secret@127.0.0.1:7890,在对话框里只把主机改成localhost后保存,修改前存下的密码变成%2A%2A%2A,修改后仍是secret。