mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-19 08:38:51 +00:00
Use 127.0.0.1 instead of localhost
This commit is contained in:
parent
0d633b388e
commit
9da61bd1c7
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class IPCInterface(component.Component):
|
||||||
if win32api.GetLastError() == winerror.ERROR_ALREADY_EXISTS:
|
if win32api.GetLastError() == winerror.ERROR_ALREADY_EXISTS:
|
||||||
# We already have a running session, send a XMLRPC to the existing session
|
# We already have a running session, send a XMLRPC to the existing session
|
||||||
config = ConfigManager("gtkui.conf")
|
config = ConfigManager("gtkui.conf")
|
||||||
uri = "http://localhost:" + str(config["signal_port"])
|
uri = "http://127.0.0.1:" + str(config["signal_port"])
|
||||||
import deluge.xmlrpclib as xmlrpclib
|
import deluge.xmlrpclib as xmlrpclib
|
||||||
rpc = xmlrpclib.ServerProxy(uri, allow_none=True)
|
rpc = xmlrpclib.ServerProxy(uri, allow_none=True)
|
||||||
rpc.emit_signal("args_from_external", args)
|
rpc.emit_signal("args_from_external", args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue