[Pkg-privacy-commits] [pyptlib] 44/136: Fixed ORPort setting

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:05 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 1179ee9e5956fad67610aec73a8e37dde0ae3c8c
Author: Brandon Wiley <brandon at blanu.net>
Date:   Mon Sep 3 13:53:04 2012 -0500

    Fixed ORPort setting
---
 src/pyptlib/server.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/pyptlib/server.py b/src/pyptlib/server.py
index 098be53..84b22dc 100644
--- a/src/pyptlib/server.py
+++ b/src/pyptlib/server.py
@@ -36,7 +36,9 @@ class ServerConfig(Config):
 
         self.extendedServerPort = self.get('TOR_PT_EXTENDED_SERVER_PORT'
                 )
-        self.ORPort = self.get('TOR_PT_ORPORT')
+        orport = self.get('TOR_PT_ORPORT').split(':')
+	orport[1]=int(orport[1])
+	self.ORPort=orport
 
         binds = self.get('TOR_PT_SERVER_BINDADDR').split(',')
         for bind in binds:

-- 
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