There was an error while loading. Please reload this page.
1 parent 07a3da0 commit d47fd39Copy full SHA for d47fd39
Telegram/Services/ProxyService.cs
@@ -337,7 +337,11 @@ public void EnableSystemProxy()
337
else
338
{
339
_settings.EnabledProxyId = -1;
340
- DisableProxy();
+
341
+ foreach (var client in _lifetime.ResolveAll<IClientService>())
342
+ {
343
+ client.Send(new DisableProxy());
344
+ }
345
}
346
347
@@ -375,11 +379,11 @@ public void DisableProxy()
375
379
new object[] { currentTimestamp },
376
380
"Id",
377
381
_settings.EnabledProxyId);
378
-
- // Clear the enabled proxy ID from settings
- _settings.EnabledProxyId = 0;
382
383
384
+ // Clear the enabled proxy ID from settings
385
+ _settings.EnabledProxyId = 0;
386
387
foreach (var client in _lifetime.ResolveAll<IClientService>())
388
389
client.Send(new DisableProxy());
0 commit comments