Deluge, allow "no port"

fix #4055
This commit is contained in:
Ruud
2014-10-13 13:20:21 +02:00
parent 477a47e45e
commit 4e7069e0c6

View File

@@ -27,6 +27,11 @@ class Deluge(DownloaderBase):
def connect(self, reconnect = False):
# Load host from config and split out port.
host = cleanHost(self.conf('host'), protocol = False).split(':')
# Force host assignment
if len(host) == 1:
host.append(80)
if not isInt(host[1]):
log.error('Config properties are not filled in correctly, port is missing.')
return False