mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
effectively disable expiry field
This commit is contained in:
parent
0c85bc8ebc
commit
5761ea237d
@ -25,6 +25,5 @@
|
||||
["0x534c", "0x0001", "Trezor"],
|
||||
["0x1209", "0x53c0", "Trezor2 Bootloader"],
|
||||
["0x1209", "0x53c1", "Trezor2"]
|
||||
],
|
||||
"valid_days": 180
|
||||
]
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ def compose_message(json, proto):
|
||||
import config_pb2
|
||||
|
||||
cfg = config_pb2.Configuration()
|
||||
cfg.valid_until = int(time.time()) + json['valid_days'] * 3600 * 24
|
||||
cfg.valid_until = 2147483647 # maxint
|
||||
cfg.wire_protocol.MergeFrom(proto)
|
||||
|
||||
for url in json['whitelist_urls']:
|
||||
|
Loading…
Reference in New Issue
Block a user