tags 567209 patch thanks A patch for this bug has been submitted to the sourceforge page[0] upstream and I have attached it here. I will be including this patch in the next debian version.
This patch does not link in with the http_proxy variable, but instead adds a new variable to denyhosts config file. Considering the majority of users run denyhosts in daemon mode, I agree with this choice. [0] https://sourceforge.net/tracker/?func=detail&aid=3450384&group_id=131204&atid=720421 - Kyle Willmon
--- sync.py 2011-12-04 10:25:06.344256489 -0500 +++ sync.py.orig 2011-12-04 10:25:56.952503924 -0500 @@ -1,5 +1,4 @@ -from xmlrpclib import ServerProxy, Transport -from httplib import HTTP +from xmlrpclib import ServerProxy import logging import os import time @@ -13,21 +12,6 @@ if len(items) != 1: return "s" else: return "" -class ProxiedTransport(Transport): - def set_proxy(self, proxy): - self.proxy = proxy - - def make_connection(self, host): - self.realhost = host - h = HTTP(self.proxy) - return h - - def send_request(self, connection, handler, request_body): - connection.putrequest("POST", 'http://%s%s' % (self.realhost, handler)) - - def send_host(self, connection, host): - connection.putheader('Host', self.realhost) - class Sync: def __init__(self, prefs): self.__prefs = prefs @@ -37,9 +21,7 @@ def xmlrpc_connect(self): try: - p = ProxiedTransport() - p.set_proxy(self.__prefs.get('SYNC_PROXY_SERVER')) - self.__server = ServerProxy(self.__prefs.get('SYNC_SERVER'), transport=p) + self.__server = ServerProxy(self.__prefs.get('SYNC_SERVER')) self.__connected = True except Exception, e: error(str(e))