mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
ParseHttpURL ran strconv.Atoi on the port before the per-scheme default, so a link without a port failed with "invalid parameters" and the Port == 0 branches were unreachable. Parse the port only when present. A proxy link never carries a path or query; one that does is a subscription URL pasted into the server box. Reject it with a message that says so instead of the bare parameter error.