Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
c4bb5dc6 by Philipp Hörist at 2024-07-07T11:46:18+02:00
cfix: Revert: Fallback to direct connection if system proxies are not suitable
- - - - -
1 changed file:
- nbxmpp/tcp.py
Changes:
=====================================
nbxmpp/tcp.py
=====================================
@@ -41,12 +41,9 @@ class TCPConnection(Connection):
self._client.set_protocol(Gio.SocketProtocol.TCP)
self._client.set_timeout(7)
- if self._address.proxy is None:
- self._proxy_resolver = Gio.SimpleProxyResolver.new('direct://',
None)
- else:
+ if self._address.proxy is not None:
self._proxy_resolver = self._address.proxy.get_resolver()
-
- self._client.set_proxy_resolver(self._proxy_resolver)
+ self._client.set_proxy_resolver(self._proxy_resolver)
GObject.Object.connect(self._client, 'event', self._on_event)
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/c4bb5dc60fe92630a117826001d1eff59a496326
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/c4bb5dc60fe92630a117826001d1eff59a496326
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]