Skip to content

feat(traffic-split): the upstream pass_host needs to support IP mode#3870

Merged
spacewander merged 3 commits into
apache:masterfrom
Firstsawyou:traffic-split-3851
Mar 29, 2021
Merged

feat(traffic-split): the upstream pass_host needs to support IP mode#3870
spacewander merged 3 commits into
apache:masterfrom
Firstsawyou:traffic-split-3851

Conversation

@Firstsawyou

@Firstsawyou Firstsawyou commented Mar 19, 2021

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

fix #3851

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@Firstsawyou
Firstsawyou marked this pull request as ready for review March 29, 2021 06:07
Comment thread apisix/plugins/traffic-split.lua Outdated

-- only support single node for `node` mode currently
ctx.var.upstream_host = host
return

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't need an extra return at the end of the function.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated @spacewander

@spacewander
spacewander merged commit da83328 into apache:master Mar 29, 2021
@Firstsawyou
Firstsawyou deleted the traffic-split-3851 branch March 29, 2021 14:00
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.

The upstrem configuration rewrite and upstrem_host in the traffic-split plug-in did not take effect correctly

3 participants