Consume Void::Net directly in NetworkClient and callers
Delete NetworkClient's to_void_method/to_void_proxy/to_api_response bridge and the Api::RetryConfig member; the client builds Void::Net::Request, sends via Void::Net::HttpClient, returns Void::Net::Response, and retries via an internal Void::Retry policy + retryable-status list. Call sites updated to Void::Net member names: isSuccess()->ok(), statusCode->status, getHeader()->header() (optional<string_view>), isRedirect()->status range check; proxy isValid()->enabled(), requiresAuth()->has_auth(), isSocks5()->kind == Kind::Socks5. Proxy fields flow through YtDlpManager/AudioDecoder/MusicManager unchanged in spelling. On-disk proxy shape is now Void::Net::ProxyConfig (kind: None/Http/Socks5); config.example.json updated and proxy round-trip verified. Build green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
3af9aecbec
commit
9d56a6ff01
12 files changed
+158
-223
No files matched your search
+2
-3
@@ -827,9 +827,8 @@ namespace Echoion::Core
|
||||
commandManager_->setServerConfig(config);
|
||||
}
|
||||
|
||||
// Update network proxy if changed
|
||||
if (networkClient_ &&
|
||||
config.network.proxy != networkClient_->getProxy()) {
|
||||
// Re-apply the network proxy from config (idempotent store).
|
||||
if (networkClient_) {
|
||||
networkClient_->setProxy(config.network.proxy);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user