Coder Social home page Coder Social logo

Comments (7)

jkralik avatar jkralik commented on September 24, 2024

Thx for finding bug.
I created PR #70 which fix issue.

from go-coap.

hjames9 avatar hjames9 commented on September 24, 2024

@jkralik Thanks, this fixes the panic. I now get an error instead when receiving a DTLS message:
"cannot serve dtls: cannot accept connections: dtls: invalid private key type"

Do you think it's better to get this error on receiving a message or immediately when just calling Listen() without needing an external message?

from go-coap.

jkralik avatar jkralik commented on September 24, 2024

@hjames9 I agree that listen must report error but it must be fixed in function dtls.Listen in package pion/dtls. Pls could you report them issue / create PR to fix it ?

from go-coap.

hjames9 avatar hjames9 commented on September 24, 2024

@jkralik You're right, took a look at the dtls.Listen code and it should be validating the dtls.Config object. I'll submit a request with them and let you know when it's fixed. Thanks!

from go-coap.

hjames9 avatar hjames9 commented on September 24, 2024

@jkralik FYI, got the DTLS Listen change merged into master

from go-coap.

hjames9 avatar hjames9 commented on September 24, 2024

@jkralik Changes are on tag 1.5.4 of pion/dtls. Should I submit a PR for the version change to close this out?

from go-coap.

jkralik avatar jkralik commented on September 24, 2024

Thx for contributing. Now it is in master.

Good job! 👍

from go-coap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.