Fix freezing on start-up issues on systems that do not have a properly

configured localhost entry.
This commit is contained in:
Andrew Resch 2008-10-08 13:32:02 +00:00
commit 798b27cf34
3 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,8 @@ Deluge 1.0.1 (In Development)
* Changed max half-open connections default limit to 8 on XP/2000 and 4 on Vista * Changed max half-open connections default limit to 8 on XP/2000 and 4 on Vista
* Prevent being able to set file priorities for compactly allocated torrents as * Prevent being able to set file priorities for compactly allocated torrents as
it is not intended to work. it is not intended to work.
* Fix freezing on start-up issues on systems that do not have a properly
configured localhost entry.
GtkUI: GtkUI:
* Improve performance of files tab by only updating when values change * Improve performance of files tab by only updating when values change

View file

@ -132,7 +132,7 @@ class Core(
if self.config["allow_remote"]: if self.config["allow_remote"]:
hostname = "" hostname = ""
else: else:
hostname = "localhost" hostname = "127.0.0.1"
# Setup the xmlrpc server # Setup the xmlrpc server
try: try:

View file

@ -333,7 +333,7 @@ class ConnectionManager(component.Component):
online = True online = True
host = None host = None
try: try:
host = xmlrpclib.ServerProxy(uri) host = xmlrpclib.ServerProxy(uri.replace("localhost", "127.0.0.1"))
host.ping() host.ping()
except socket.error: except socket.error:
online = False online = False