mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-02 04:18:20 +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)
|
debuglink = PipeTransport('/tmp/pipe.trezor_debug', False)
|
||||||
|
|
||||||
elif UDP_ENABLED:
|
elif UDP_ENABLED:
|
||||||
wirelink = UdpTransport()
|
wirelink = UdpTransport('127.0.0.1:21324')
|
||||||
debuglink = UdpTransport()
|
debuglink = UdpTransport('127.0.0.1:21325')
|
||||||
|
|
||||||
return wirelink, debuglink
|
return wirelink, debuglink
|
||||||
|
|
||||||
|
@ -43,13 +43,6 @@ class UdpTransport(Transport):
|
|||||||
host = devparts[0]
|
host = devparts[0]
|
||||||
port = int(devparts[1]) if len(devparts) > 1 else UdpTransport.DEFAULT_PORT
|
port = int(devparts[1]) if len(devparts) > 1 else UdpTransport.DEFAULT_PORT
|
||||||
if not protocol:
|
if not protocol:
|
||||||
'''
|
|
||||||
force_v1 = os.environ.get('TREZOR_TRANSPORT_V1', '0')
|
|
||||||
if not int(force_v1):
|
|
||||||
protocol = ProtocolV2()
|
|
||||||
else:
|
|
||||||
protocol = ProtocolV1()
|
|
||||||
'''
|
|
||||||
protocol = ProtocolV1()
|
protocol = ProtocolV1()
|
||||||
self.device = (host, port)
|
self.device = (host, port)
|
||||||
self.protocol = protocol
|
self.protocol = protocol
|
||||||
|
Loading…
Reference in New Issue
Block a user