IPV6 visits the website, but the console mistakenly reports that the illegal URL, how to solve

problem description

We have changed IPV4 to IPV6 network packet protocol, but when we visit, we say that URL is illegal, because IPV6 access is a http://[222:222:222:22]:80/index.html, expanded in square brackets

like this.

the environmental background of the problems and what methods you have tried

looked up a lot of posts on the Internet, mostly about the difference between IPV4 and IPV6, but did not find similar problems

related codes

/ / Please paste the code text below (do not replace the code with pictures)
the code here is a script written by someone related to the company, and the script is executed to replace ipv4 with ipv6

.

what result do you expect? What is the error message actually seen?

the result I expect is normal access without reporting errors.
my guess is whether our product does not support access in the form of IPV6.

clipboard.png


indicates that ajax is dead. It should be that api does not support ipv6

Menu