Closed jonhelge closed 11 months ago
Thanks for reporting this @jonhelge! The issue here is that the interface is non-nil because it has been assigned a type *dtls.Conn
, but the value of the type is nil
. I opened #489 to address this as we shouldn't attempt to serve a connection if an error is returned, even if the connection is non-nil.
If I have a mismatch between the PSK in server and client I get this error:
For some reason the code below this fixes the problem. It could be by accident. When debugging it looked like the coap server did not understand that the handshake failed and tried to continue as if it had a valid connection.