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
parent 2428cb4970
commit c8901d31c5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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