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:
Job Evers-Meltzer 2016-12-30 16:47:50 -06:00
parent 18a47a048a
commit eec25791a5

View file

@ -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):