You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "lxfeng1997 (via GitHub)" <gi...@apache.org> on 2025/03/08 13:48:51 UTC
[PR] support ipv6 [incubator-seata-go]
lxfeng1997 opened a new pull request, #786:
URL: https://github.com/apache/incubator-seata-go/pull/786
<!-- Thanks for sending a pull request!
-->
**What this PR does**:
This pr will support ipv6
**Which issue(s) this PR fixes**:
#710
**Special notes for your reviewer**:
**Does this PR introduce a user-facing change?**:
--
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-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] support ipv6 [incubator-seata-go]
Posted by "luky116 (via GitHub)" <gi...@apache.org>.
luky116 commented on PR #786:
URL: https://github.com/apache/incubator-seata-go/pull/786#issuecomment-2726480917
测试下,能否跑通整个流程
--
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-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] support ipv6 [incubator-seata-go]
Posted by "lxfeng1997 (via GitHub)" <gi...@apache.org>.
lxfeng1997 commented on PR #786:
URL: https://github.com/apache/incubator-seata-go/pull/786#issuecomment-2774595788
> 测试下,能否跑通整个流程
Done
--
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-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] support ipv6 [incubator-seata-go]
Posted by "lxfeng1997 (via GitHub)" <gi...@apache.org>.
lxfeng1997 commented on code in PR #786:
URL: https://github.com/apache/incubator-seata-go/pull/786#discussion_r1996696882
##########
pkg/util/net/address_validator.go:
##########
@@ -0,0 +1,43 @@
+package net
Review Comment:
done
##########
pkg/util/net/address_validator_test.go:
##########
@@ -0,0 +1,113 @@
+package net
Review Comment:
done
--
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-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] support ipv6 [incubator-seata-go]
Posted by "Code-Fight (via GitHub)" <gi...@apache.org>.
Code-Fight commented on code in PR #786:
URL: https://github.com/apache/incubator-seata-go/pull/786#discussion_r1995240843
##########
pkg/util/net/address_validator.go:
##########
@@ -0,0 +1,43 @@
+package net
Review Comment:
加一下license
##########
pkg/util/net/address_validator_test.go:
##########
@@ -0,0 +1,113 @@
+package net
Review Comment:
加license
--
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-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] support ipv6 [incubator-seata-go]
Posted by "Code-Fight (via GitHub)" <gi...@apache.org>.
Code-Fight merged PR #786:
URL: https://github.com/apache/incubator-seata-go/pull/786
--
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-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] support ipv6 [incubator-seata-go]
Posted by "lxfeng1997 (via GitHub)" <gi...@apache.org>.
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-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org