diff options
author | mkaay <mkaay@mkaay.de> | 2010-08-06 18:45:19 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-08-06 18:45:19 +0200 |
commit | b85e8d563725fadfc976070c336f259324849ae5 (patch) | |
tree | 9602cb05eca90937837e185c0eaf8a6b56af748a /module/plugins | |
parent | megaupload, zippyshare and depositfiles free user working (diff) | |
download | pyload-b85e8d563725fadfc976070c336f259324849ae5.tar.xz |
fixes
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hooks/MultiHome.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py index 9e2bcbe5f..cfea5952d 100644 --- a/module/plugins/hooks/MultiHome.py +++ b/module/plugins/hooks/MultiHome.py @@ -25,7 +25,7 @@ class MultiHome(Hook): __version__ = "0.1" __description__ = """ip address changer""" __config__ = [ ("activated", "bool", "Activated" , "False"), - ("interfaces", "str", "Interfaces" , "") ] + ("interfaces", "str", "Interfaces" , "None") ] __author_name__ = ("mkaay") __author_mail__ = ("mkaay@mkaay.de") @@ -51,8 +51,9 @@ class MultiHome(Hook): oldGetRequest = requestFactory.getRequest def getRequest(pluginName, account=None, type="HTTP"): iface = self.bestInterface(pluginName, account) - iface.useFor(pluginName, account) - requestFactory.iface = iface.adress + if iface: + iface.useFor(pluginName, account) + requestFactory.iface = iface.adress return oldGetRequest(pluginName, account, type) requestFactory.getRequest = getRequest |