Skip to content

ServerConfig::from_url panics instead of returning an error on unknown method #1760

@link2xt

Description

@link2xt

The problem is this line:

let method = method.parse().expect("method");

For an example of URL that causes panic: ss://foo:[email protected]:9999.

Downstream issue: chatmail/core#6189

Bugfix: #1762

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