fix(noise): remove echo, add stdout.write in print handshake

This commit is contained in:
s1fr0 2022-04-14 13:51:57 +02:00
parent 9fc162dff8
commit 418160bffa
No known key found for this signature in database
GPG Key ID: 2C041D60117BFF46
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ proc print*(self: HandshakePattern)
{.raises: [IOError, NoiseMalformedHandshake].}=
try:
if self.name != "":
echo self.name, ":"
stdout.write self.name, ":\n"
stdout.flushFile()
#We iterate over pre message patterns, if any
if self.preMessagePatterns != EmptyPreMessagePattern:
for pattern in self.pre_messagePatterns: