mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 05:36:42 +08:00
trezor: allow UDP connection (for emulator)
This commit is contained in:
@@ -40,7 +40,9 @@ class Trezor(interface.Device):
|
|||||||
# Allow using TREZOR bridge transport (instead of the HID default)
|
# Allow using TREZOR bridge transport (instead of the HID default)
|
||||||
trezor_defs.Transport = {
|
trezor_defs.Transport = {
|
||||||
'bridge': trezor_defs.BridgeTransport,
|
'bridge': trezor_defs.BridgeTransport,
|
||||||
}.get(os.environ.get('TREZOR_TRANSPORT'), trezor_defs.HidTransport)
|
'udp': trezor_defs.UdpTransport,
|
||||||
|
'hid': trezor_defs.HidTransport,
|
||||||
|
}[os.environ.get('TREZOR_TRANSPORT', 'hid')]
|
||||||
return trezor_defs
|
return trezor_defs
|
||||||
|
|
||||||
required_version = '>=1.4.0'
|
required_version = '>=1.4.0'
|
||||||
|
|||||||
@@ -7,3 +7,4 @@ from trezorlib.client import TrezorClient as Client
|
|||||||
from trezorlib.messages import IdentityType, PassphraseAck, PinMatrixAck
|
from trezorlib.messages import IdentityType, PassphraseAck, PinMatrixAck
|
||||||
from trezorlib.transport_bridge import BridgeTransport
|
from trezorlib.transport_bridge import BridgeTransport
|
||||||
from trezorlib.transport_hid import HidTransport
|
from trezorlib.transport_hid import HidTransport
|
||||||
|
from trezorlib.transport_udp import UdpTransport
|
||||||
|
|||||||
Reference in New Issue
Block a user