daemon: default rpchost to 127.0.0.1
This commit is contained in:
parent
f61d8b4c24
commit
71de14240d
|
@ -116,7 +116,7 @@ class Daemon(DaemonThread):
|
||||||
self.init_server(config, fd)
|
self.init_server(config, fd)
|
||||||
|
|
||||||
def init_server(self, config, fd):
|
def init_server(self, config, fd):
|
||||||
host = config.get('rpchost', '')
|
host = config.get('rpchost', '127.0.0.1')
|
||||||
port = config.get('rpcport', 0)
|
port = config.get('rpcport', 0)
|
||||||
try:
|
try:
|
||||||
server = SimpleJSONRPCServer((host, port), logRequests=False,
|
server = SimpleJSONRPCServer((host, port), logRequests=False,
|
||||||
|
|
Loading…
Reference in New Issue