mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 16:48:09 +00:00
tests: fix udp debuglink
This commit is contained in:
parent
bccd61cb23
commit
2c91a668aa
@ -83,8 +83,8 @@ def get_transport():
|
||||
debuglink = PipeTransport('/tmp/pipe.trezor_debug', False)
|
||||
|
||||
elif UDP_ENABLED:
|
||||
wirelink = UdpTransport()
|
||||
debuglink = UdpTransport()
|
||||
wirelink = UdpTransport('127.0.0.1:21324')
|
||||
debuglink = UdpTransport('127.0.0.1:21325')
|
||||
|
||||
return wirelink, debuglink
|
||||
|
||||
|
@ -43,13 +43,6 @@ class UdpTransport(Transport):
|
||||
host = devparts[0]
|
||||
port = int(devparts[1]) if len(devparts) > 1 else UdpTransport.DEFAULT_PORT
|
||||
if not protocol:
|
||||
'''
|
||||
force_v1 = os.environ.get('TREZOR_TRANSPORT_V1', '0')
|
||||
if not int(force_v1):
|
||||
protocol = ProtocolV2()
|
||||
else:
|
||||
protocol = ProtocolV1()
|
||||
'''
|
||||
protocol = ProtocolV1()
|
||||
self.device = (host, port)
|
||||
self.protocol = protocol
|
||||
|
Loading…
Reference in New Issue
Block a user