mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
app: echo.py show usage of link-local ipv6
This commit is contained in:
@@ -5,8 +5,10 @@ from pydrk import serial
|
||||
|
||||
context = zmq.Context()
|
||||
socket = context.socket(zmq.REQ)
|
||||
#self.socket.setsockopt(zmq.IPV6, True)
|
||||
socket.connect(f"tcp://127.0.0.1:9484")
|
||||
#socket.setsockopt(zmq.IPV6, True)
|
||||
# Need to specify network interface for IPv6 link-local addrs
|
||||
#socket.connect(f"tcp://[XXX%eth1]:9484")
|
||||
socket.connect(f"tcp://[::]:9484")
|
||||
|
||||
req_cmd = bytearray()
|
||||
serial.write_u8(req_cmd, 0)
|
||||
|
||||
Reference in New Issue
Block a user