mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-17 02:40:57 +00:00
config will stay in hex form (IE)
This commit is contained in:
parent
70dd320c1f
commit
608025419b
@ -1,6 +1,5 @@
|
|||||||
'''BridgeTransport implements transport TREZOR Bridge (aka trezord).'''
|
'''BridgeTransport implements transport TREZOR Bridge (aka trezord).'''
|
||||||
|
|
||||||
import binascii
|
|
||||||
import requests
|
import requests
|
||||||
import protobuf_json
|
import protobuf_json
|
||||||
import json
|
import json
|
||||||
@ -21,7 +20,7 @@ class BridgeTransport(Transport):
|
|||||||
if r.status_code != 200:
|
if r.status_code != 200:
|
||||||
raise Exception('Could not fetch config from %s' % CONFIG_URL)
|
raise Exception('Could not fetch config from %s' % CONFIG_URL)
|
||||||
|
|
||||||
config = binascii.unhexlify(r.text)
|
config = r.text
|
||||||
|
|
||||||
r = requests.post(TREZORD_HOST + '/configure', data=config)
|
r = requests.post(TREZORD_HOST + '/configure', data=config)
|
||||||
if r.status_code != 200:
|
if r.status_code != 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user