1
0

disable jsonrpc on android

This commit is contained in:
ThomasV
2018-01-07 16:13:56 +01:00
parent f8fad2fd29
commit 7c702b518d
2 changed files with 9 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ def get_server(config):
class Daemon(DaemonThread):
def __init__(self, config, fd):
def __init__(self, config, fd, is_android):
DaemonThread.__init__(self)
self.config = config
if config.get('offline'):
@@ -103,9 +103,12 @@ class Daemon(DaemonThread):
self.gui = None
self.wallets = {}
# Setup JSONRPC server
self.cmd_runner = Commands(self.config, None, self.network)
self.init_server(config, fd)
if not is_android:
# Setup JSONRPC server
self.cmd_runner = Commands(self.config, None, self.network)
self.init_server(config, fd)
else:
self.server = None
def init_server(self, config, fd):
host = config.get('rpchost', '127.0.0.1')