summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/MultiHome.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-29 11:44:24 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-29 11:44:24 +0100
commit31c5e0c1cbb6da955973bdce360eedbe61225688 (patch)
tree0170556dd7528723c803fb1c299199aca143ab24 /module/plugins/hooks/MultiHome.py
parentmore fixes and chunk+resume debug (diff)
downloadpyload-31c5e0c1cbb6da955973bdce360eedbe61225688.tar.xz
fixed accounts
Diffstat (limited to 'module/plugins/hooks/MultiHome.py')
-rw-r--r--module/plugins/hooks/MultiHome.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py
index 4678412bf..68ad02181 100644
--- a/module/plugins/hooks/MultiHome.py
+++ b/module/plugins/hooks/MultiHome.py
@@ -47,13 +47,13 @@ class MultiHome(Hook):
self.interfaces.append(Interface(interface))
def coreReady(self):
- requestFactory = self.core.requestFactory
- oldGetRequest = requestFactory.getRequest
+ requestFactory = self.core.requestFactory
+ oldGetRequest = requestFactory.getRequest
def getRequest(pluginName, account=None):
iface = self.bestInterface(pluginName, account)
if iface:
iface.useFor(pluginName, account)
- requestFactory.iface = iface.adress
+ requestFactory.iface = lambda self: iface.adress
self.log.debug("Multihome: using address: "+iface.adress)
return oldGetRequest(pluginName, account)
requestFactory.getRequest = getRequest