Skip to content

fix: match proxy group types without case sensitivity - #10472

Open
Shubham-Padkonde wants to merge 1 commit into
2dust:masterfrom
Shubham-Padkonde:fix/proxy-group-delay-case
Open

Shubham-Padkonde wants to merge 1 commit into
2dust:masterfrom
Shubham-Padkonde:fix/proxy-group-delay-case

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Fixes #10471.

The current-proxy panel can display a Selector group, but its batch latency test checks that type against a lowercase allowlist and returns without sending any requests. Match the existing allowed types with StringComparer.OrdinalIgnoreCase so Selector, URLTest, LoadBalance and Fallback reach the delay API. Unsupported and missing types remain excluded.

The regression test calls the actual ViewModel batch-delay method against a local HTTP server and checks both the request and displayed latency. It covers mixed-case and lowercase group types, plus unsupported and null types. Five of the eight cases fail on unchanged code because no request is sent; all eight pass with the fix.

Validation on Windows with .NET 10.0.401:

  • Full ServiceLib.Tests suite: 144 passed, no failures or skips.
  • Release build of the Windows WPF application: passed, zero warnings or errors.
  • Changed-test whitespace formatting and git diff --check: passed.

The desktop UI was not clicked manually and no live proxy core was used; the HTTP regression runs the production ViewModel and API-client path with a controlled delay response.

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

Successfully merging this pull request may close these issues.

[Bug]: 当前代理组批量测延迟因类型大小写不一致而直接退出(mihomo)

1 participant