kingluo commented on issue #7563: URL: https://github.com/apache/apisix/issues/7563#issuecomment-1203802865
> 3. @kingluo 看到您提交了 fix,新版本是支持自动加上方括号的么? 是的,问题修复了。 upstream的nodes配置有两种格式,一种是字符串的哈希表,一种是node结构的数组,ingress用的是后面这种。 对于字符串格式,例如`127.0.0.1:80`、`[::1]:80`,那么对于ipv6地址加端口的情况,需要用户确保用中括号将ipv6地址括起来,否则apisix无法分辨出是否带有端口,例如`::1:80`和`::1`都是合法ipv6地址。 对于node结构的数组,主机名/IP和端口是分开配置的,对于ipv6地址,apisix有bug,现在修复了,使得如果是ipv6地址,就自动用中括号括起来,不需要用户手工输入中括号。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
