Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

ws and connect bootstrapping may block #51

@nothingmuch

Description

@nothingmuch

The uri_to_addr helper function uses std::net::ToSocketAddsr::to_socket_addrs, which may block.

With gateway opt-in, since the DNS zone might be under adversarial control this could be a denial of service issue.

tokio::net::lookup_host should be used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions