forked from LBRYCommunity/lbry-sdk
fix lbryid in settings dict
The lbryid is stored as raw bytes, need to hexlify it before sending it over to the client
This commit is contained in:
parent
18a47a048a
commit
eec25791a5
1 changed files with 3 additions and 1 deletions
|
@ -1235,7 +1235,9 @@ class Daemon(AuthJSONRPCServer):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
log.info("Get daemon settings")
|
log.info("Get daemon settings")
|
||||||
return self._render_response(conf.settings.get_dict(), OK_CODE)
|
settings_dict = conf.settings.get_dict()
|
||||||
|
settings_dict['lbryid'] = binascii.hexlify(settings_dict['lbryid'])
|
||||||
|
return self._render_response(settings_dict, OK_CODE)
|
||||||
|
|
||||||
@AuthJSONRPCServer.auth_required
|
@AuthJSONRPCServer.auth_required
|
||||||
def jsonrpc_set_settings(self, p):
|
def jsonrpc_set_settings(self, p):
|
||||||
|
|
Loading…
Add table
Reference in a new issue