Skip to content

feat: support connect etcd with ipv6 address#8245

Merged
spacewander merged 4 commits into
apache:masterfrom
tzssangglass:etcd_ipv6
Nov 7, 2022
Merged

feat: support connect etcd with ipv6 address#8245
spacewander merged 4 commits into
apache:masterfrom
tzssangglass:etcd_ipv6

Conversation

@tzssangglass

Copy link
Copy Markdown
Member

Description

Fixes #7100

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

tokers
tokers previously approved these changes Nov 6, 2022
Comment thread apisix/patch.lua Outdated

if host:byte(1) == string.byte('[') then
-- ipv6, form as '[::1]', remove '[' and ']'
host = host:sub(2,-2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
host = host:sub(2,-2)
host = host:sub(2, -2)

spacewander
spacewander previously approved these changes Nov 6, 2022
soulbird
soulbird previously approved these changes Nov 7, 2022
@tzssangglass
tzssangglass dismissed stale reviews from soulbird, spacewander, and tokers via d2962e3 November 7, 2022 01:11
@stubbornTanzhe

stubbornTanzhe commented Apr 12, 2023

Copy link
Copy Markdown

can this pr cherry-pick to 2.15.3? @tzssangglass
also occur to etcd ipv6 address in apisix config case,which version is 2.13.3

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

request help: apisix doesn't support etcd ipv6 endpoints

5 participants