[Pkg-privacy-commits] [pyptlib] 61/136: Ignore transports that we don't recognize.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository pyptlib.

commit 87c8622195df3dd6557cf228c58c8786db95685f
Author: George Kadianakis <desnacked at riseup.net>
Date:   Wed Jan 9 23:51:36 2013 +0200

    Ignore transports that we don't recognize.
---
 pyptlib/client.py | 2 --
 pyptlib/server.py | 4 ----
 2 files changed, 6 deletions(-)

diff --git a/pyptlib/client.py b/pyptlib/client.py
index e57f817..59e4944 100644
--- a/pyptlib/client.py
+++ b/pyptlib/client.py
@@ -105,8 +105,6 @@ def _getTransportsList(supported_transports, config):
     for transport in config.getClientTransports():
         if transport in supported_transports:
             transports.append(transport)
-        else:
-            config.writeMethodError(transport, "not supported")
 
     return transports
 
diff --git a/pyptlib/server.py b/pyptlib/server.py
index 05b03e6..ee075ec 100644
--- a/pyptlib/server.py
+++ b/pyptlib/server.py
@@ -111,9 +111,5 @@ def _getTransportsDict(supported_transports, config):
         if transport in supported_transports:
             assert(transport in config.getServerBindAddresses())
             transports[transport] = config.getServerBindAddresses()[transport]
-        else:
-            # Issue SMETHOD-ERROR when Tor asks us to spawn a
-            # transport that we do not support.
-            config.writeMethodError(transport, "not supported")
 
     return transports

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pyptlib.git



More information about the Pkg-privacy-commits mailing list