Skip to content

DNS lookup may fail for tracker URIs with paths #161

@coderabbitai

Description

@coderabbitai

Description

The current implementation in UdpTracker::new uses lookup_host(&uri.replace("udp://", "")) which may include URL paths (e.g., /announce) and cause DNS resolution to fail.

Location

File: crates/libtortillas/src/tracker/udp.rs, lines 548-557

Context

This issue was identified during review of PR #160 but is out of scope for that refactoring effort.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions