1
0
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:
Jan Pochyla 2018-02-21 15:05:28 +01:00
parent bccd61cb23
commit 2c91a668aa
2 changed files with 2 additions and 9 deletions

View File

@ -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

View File

@ -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