mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix freezing on start-up issues on systems that do not have a properly
configured localhost entry.
This commit is contained in:
parent
2428cb4970
commit
c8901d31c5
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue