fix: support ipv6 proxy management in admin ui#2522
Conversation
|
Thank you for your contribution! Before we can merge this PR, we need you all to sign our Contributor License Agreement (CLA). To sign, please reply with the following comment:
You only need to sign once — it will be valid for all your future contributions to this project. I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
|
I have read the CLA Document and I hereby sign the CLA |
3507ee1 to
f5adf06
Compare
f5adf06 to
ce00273
Compare
|
recheck |
This fixes IPv6 proxy management in the Sub2API admin IP/proxy workflow.
Problem:
The admin proxy UI accepted proxy hosts as plain strings, while the backend and helper utilities treated host:port formatting as IPv4-shaped. SOCKS5 IPv6 proxies therefore could be stored or displayed inconsistently, and bracketed IPv6 URLs from imports/checks could fail to match existing proxy entries.
Root cause:
Proxy host normalization and URL formatting did not consistently distinguish the stored host from the URL authority form. IPv6 needs brackets only when combined with a port in URLs, but storage and comparisons should use the canonical bare host form.
Fix:
Verification: