dotnet / WatsonTcp

WatsonTcp is the easiest way to build TCP-based clients and servers in C#.
MIT License
600 stars 117 forks source link

PresharedKey usage is broken since version 6.0.2 #279

Open SnowdenDev opened 9 months ago

SnowdenDev commented 9 months ago

Hi @jchristn , I have a small problem that maybe has not been noticed, I have version 6.0.1 of the nuget WatsonTcp package currently in my project, I have noticed many improvements in the new versions so I need to implement in my project the current version 6.0.5....

As nothing prevents it I made the update in both client and server and the connection stopped working, like crazy I searched and found that the problem was in: server.Settings.PresharedKey = "1234567891234567"; and await client.AuthenticateAsync("1234567891234567");

Maybe there was some change that I did not see in the implementation, or maybe something is wrong, I would like to have your opinion, thank you very much.

jchristn commented 6 months ago

Hi @SnowdenDev I'm sorry for the delay in getting back to you. Are you indicating that the PresharedKey is hard-coded somewhere in the library? I'm not seeing it. I'll do a quick test and report back.

jchristn commented 6 months ago

Yep, it's buggered. Will look tonight