http://[fd15:4ba5:5a2b:1008:20c:29ff:fe9c:91c1]

对于这样的ipv6地址,用curl进行测试,在windows10 让

curl -6 http://[fd15:4ba5:5a2b:1008:20c:29ff:fe9c:91c1]  是可以的。

在centos 7平台上是不行的

报错

[root@centos xx]# curl -6 "[fd15:4ba5:5a2b:1008:20c:29ff:fe9c:91c1]"  
curl: (3) [globbing] error: bad range specification after pos 2
 

解决办法是加上 -g 禁止将[]识别成 range

curl -6 "[fd15:4ba5:5a2b:1008:20c:29ff:fe9c:91c1]"  -g  

这样即可。

 

更多可参考:

https://blog.csdn.net/bestjie01/article/details/106326522

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐