-
Notifications
You must be signed in to change notification settings - Fork 13
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
[+]: IgnoreProxy #27
base: main
Are you sure you want to change the base?
[+]: IgnoreProxy #27
Conversation
审阅者指南 by Sourcery此拉取请求引入了一个忽略系统代理设置的修复,解决了在启用代理时游戏在标题屏幕冻结的问题。这是通过在 NetHttpClient 中将代理设置为 null 来实现的。 NetHttpClient 中代理处理的序列图sequenceDiagram
participant Game
participant NetHttpClient
participant HttpWebRequest
Game->>NetHttpClient: Create()
NetHttpClient->>HttpWebRequest: Create request
Note right of HttpWebRequest: Before: Uses system proxy
NetHttpClient->>HttpWebRequest: Set Proxy = null
Note right of HttpWebRequest: After: Ignores system proxy
显示 Common 类修改的类图classDiagram
class Common {
-static bool ignoreProxy
+IgnoreProxy(NetHttpClient) void
}
class NetHttpClient {
-HttpWebRequest _request
+Create()
}
Common ..> NetHttpClient : patches
note for Common "Added ignoreProxy config and patch method"
文件级更改
提示和命令与 Sourcery 交互
自定义您的体验访问您的仪表板以:
获取帮助Original review guide in EnglishReviewer's Guide by SourceryThis pull request introduces a fix to ignore system proxy settings, which resolves an issue where the game would freeze at the title screen when a proxy is enabled. This is achieved by setting the proxy to null in the NetHttpClient. Sequence diagram for proxy handling in NetHttpClientsequenceDiagram
participant Game
participant NetHttpClient
participant HttpWebRequest
Game->>NetHttpClient: Create()
NetHttpClient->>HttpWebRequest: Create request
Note right of HttpWebRequest: Before: Uses system proxy
NetHttpClient->>HttpWebRequest: Set Proxy = null
Note right of HttpWebRequest: After: Ignores system proxy
Class diagram showing Common class modificationsclassDiagram
class Common {
-static bool ignoreProxy
+IgnoreProxy(NetHttpClient) void
}
class NetHttpClient {
-HttpWebRequest _request
+Create()
}
Common ..> NetHttpClient : patches
note for Common "Added ignoreProxy config and patch method"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嘿 @Becods - 我已经审查了你的更改 - 以下是一些反馈:
整体评论:
- 请提供英文提交消息,并添加文档注释,解释代理问题以及为什么需要这个更改。
以下是我在审查期间查看的内容
- 🟢 一般性问题:一切看起来都很好
- 🟢 安全性:一切看起来都很好
- 🟢 测试:一切看起来都很好
- 🟢 复杂性:一切看起来都很好
- 🟢 文档:一切看起来都很好
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我将使用这些反馈来改进你的评论。
Original comment in English
Hey @Becods - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please provide an English commit message and add documentation comments explaining the proxy issue and why this change is necessary.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
其实卡 title 更大可能应该是 poweron 的时候没 poweron 上 |
然后我觉得这个应该做成一个单独可以开关的选项并且支持自定义代理 |
忽略系统代理,修复开着代理会导致卡title的问题
Summary by Sourcery
在发出 HTTP 请求时忽略系统代理。
新功能:
Bug 修复:
Original summary in English
Summary by Sourcery
Ignore the system proxy when making HTTP requests.
New Features:
Bug Fixes: