Skip to content

Feature/remove panics - #17

Merged
pokatomnik merged 10 commits into
dungeon-masterfrom
feature/remove-panics
May 17, 2026
Merged

Feature/remove panics#17
pokatomnik merged 10 commits into
dungeon-masterfrom
feature/remove-panics

Conversation

@pokatomnik

Copy link
Copy Markdown
Owner

No description provided.

Update configuration helper functions to return `anyhow::Result` and use
the `?` operator for error propagation. Extend `get_uri_data` and
related
functions accordingly. Add comprehensive unit tests for URI parsing,
including supported protocols and expected panic cases.
Propagate parsing errors with anyhow::Result instead of panicking,
and add unit tests for address parsing.
Replace unwrap and panic calls with proper error handling using
anyhow::Result and IncorrectURI. Includes unit tests for
parse_vmess_address.
Replace `.unwrap()` calls with `.incorrect_uri()?` across Socks,
ShadowSocks, Trojan, and VMess parsers to handle malformed URIs
gracefully.
@pokatomnik pokatomnik self-assigned this May 17, 2026
@pokatomnik
pokatomnik merged commit c947c87 into dungeon-master May 17, 2026
1 check passed
@pokatomnik
pokatomnik deleted the feature/remove-panics branch May 17, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant