fix(proxy): improve validation and error handling in proxy config panels

- Add StopTimeout/StopFailed error types for proper stop() error reporting
- Replace silent clamp with validation-and-block in config panels
- Add listenAddress format validation in ProxyPanel
- Use log_codes constants instead of hardcoded strings
- Use once_cell::Lazy for regex precompilation
This commit is contained in:
YoVinchen
2026-01-11 14:12:57 +08:00
parent 7bc9dbbbb0
commit d33f99aca4
11 changed files with 331 additions and 54 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ impl SkillService {
.user_agent("cc-switch")
.timeout(std::time::Duration::from_secs(10))
.build()
.expect("Failed to create HTTP client"),
.unwrap_or_else(|_| Client::new()),
}
}