Commit Graph

1 Commits

Author SHA1 Message Date
Wei-Lun Li ff9fd7b988 fix(fmt): default the AnyTLS and Naive port to 443 when the link omits it (#10504)
The AnyTLS URI scheme makes the port optional and defaults it to 443,
and two of its three examples leave it out. The naive+https:// and
naive+quic:// link format does the same: the port is omitted when it is
443, and none of its examples carries one.

System.Uri answers -1 for an unregistered scheme with no port, so these
links were imported with Port = -1 and the profile failed IsValid().
Apply the same default Hysteria2Fmt already uses (#10026). An explicit
":0" is still kept as 0.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 19:44:03 +08:00