mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-04-13 01:11:26 +00:00
Noise: try to use noise in go
This commit is contained in:
@ -23,9 +23,7 @@ class EchoProcess(BaseInteractiveProcess):
|
||||
def __init__(
|
||||
self, port: int, security_protocol: TProtocol, destination: Multiaddr = None
|
||||
) -> None:
|
||||
args = [f"-l={port}"]
|
||||
if security_protocol == PLAINTEXT_PROTOCOL_ID:
|
||||
args.append("-insecure")
|
||||
args = [f"-l={port}", f"-security={security_protocol}"]
|
||||
if destination is not None:
|
||||
args.append(f"-d={str(destination)}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user