Skip to content

support ipv6 #786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

support ipv6 #786

wants to merge 6 commits into from

Conversation

lxfeng1997
Copy link
Contributor

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?:

)

// Analyze it yourself here, in order to support the diversity of configurations
func SplitIPPortStr(addr string) (string, int, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seata使用的第三方库本身也对IPv6有支持,不过对于不带 “[]” 括号的ipv6解析不对且对于%符号也需要另外处理,dubbo-go代码上看也是这样。但是查看java版本的seata代码也是自己解析且支持不带“[]”括号以及%符号处理的,所以这里自己加了这个地址工具。

@luky116
Copy link
Contributor

luky116 commented Mar 15, 2025

测试下,能否跑通整个流程

Code-Fight
Code-Fight previously approved these changes Mar 25, 2025
Copy link
Contributor

@Code-Fight Code-Fight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lxfeng1997
Copy link
Contributor Author

测试下,能否跑通整个流程

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants