mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-07 22:38:21 +03:00
Improve best-effort system proxy handling
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -76,6 +76,8 @@ def validateProxyServer(server) -> bool:
|
||||
if int(port) < 0 or int(port) > 65535:
|
||||
raise ValueError
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
return False
|
||||
|
||||
return True
|
||||
@@ -382,6 +384,8 @@ class ConnectionController(QtCore.QObject):
|
||||
)
|
||||
|
||||
try:
|
||||
# System proxy setup is best effort; the helper logs host failures.
|
||||
# Ignore even False so an otherwise usable core stays connected.
|
||||
SystemProxy.set(httpProxy, proxyServerBypass)
|
||||
except Exception as ex:
|
||||
# Any non-exit exceptions
|
||||
@@ -515,6 +519,8 @@ class ConnectionController(QtCore.QObject):
|
||||
try:
|
||||
self._actionQueue.get_nowait()
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
pass
|
||||
|
||||
Mixins.ConnectionAware.callDisconnectedCallback()
|
||||
|
||||
Reference in New Issue
Block a user