mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +08:00
refactor(Proxy): Update proxy configuration handling
This commit is contained in:
parent
f7edb5442d
commit
1bc0d32fa3
@ -17,10 +17,12 @@ export class ProxyManager {
|
|||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.config = {
|
this.config = {
|
||||||
mode: 'system',
|
mode: 'none',
|
||||||
url: ''
|
url: ''
|
||||||
}
|
}
|
||||||
this.monitorSystemProxy()
|
if (this.config.mode === 'system') {
|
||||||
|
this.monitorSystemProxy()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async setSessionsProxy(config: _ProxyConfig): Promise<void> {
|
private async setSessionsProxy(config: _ProxyConfig): Promise<void> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user