Skip to content

Commit

Permalink
Fixed a bug with the state freezing when turning on another proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
gri-gus committed Sep 12, 2024
1 parent eb93dd4 commit c3d0b0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions com.ggusev.proxymanager.sdPlugin/code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ def run_monitoring(self):
def monitoring_iteration(self):
for context, prx in CONTEXT_TO_PROXY_ITEM.items():
proxy = get_proxy(proxy_type=prx.proxy_type, networkservice=prx.networkservice)
if proxy.server != prx.domain or proxy.port != prx.port:
continue
if proxy.enabled:
if proxy.enabled and proxy.server == prx.domain and proxy.port == prx.port:
self.set_state(context=context, state=ConnectStates.ENABLED)
continue
self.set_state(context=context, state=ConnectStates.DISABLED)
Expand Down
2 changes: 1 addition & 1 deletion com.ggusev.proxymanager.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"Description": "Control proxy on MacOS",
"Icon": "assets/plugin_icon",
"Name": "Proxy manager",
"Version": "1.0.0",
"Version": "1.0.1",
"SDKVersion": 2,
"OS": [
{
Expand Down

0 comments on commit c3d0b0e

Please sign in to comment.