disable jsonrpc on android
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user