lxfeng1997 commented on code in PR #786: URL: https://github.com/apache/incubator-seata-go/pull/786#discussion_r1986085904
########## pkg/util/net/address_validator.go: ########## @@ -0,0 +1,43 @@ +package net + +import ( + "fmt" + "regexp" + "strconv" + "strings" +) + +const ( + addressSplitChar = ":" +) + +// Analyze it yourself here, in order to support the diversity of configurations +func SplitIPPortStr(addr string) (string, int, error) { Review Comment: seata使用的第三方库本身也对IPv6有支持,不过对于不带 “[]” 括号的ipv6解析不对且对于%符号也需要另外处理,dubbo-go代码上看也是这样。但是查看java版本的seata代码也是自己解析且支持不带“[]”括号以及%符号处理的,所以这里自己加了这个地址工具。 -- 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: notifications-unsubscr...@seata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org