Skip to content
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

无法正确获取client ip #95

Open
LeeZiyang opened this issue Dec 24, 2019 · 1 comment
Open

无法正确获取client ip #95

LeeZiyang opened this issue Dec 24, 2019 · 1 comment

Comments

@LeeZiyang
Copy link

场景:使用mesher的服务A与同样使用mesher的服务B

个人分析结论:
A调用B服务时,在B服务处无法获取到A服务的client ip。很大的可能是在mesher B的代理过程中,将这个IP丢弃。

正常的情况下,通过代理(如nginx、apache httpd)后,会提供写入x-forward-for请求头的能力。
是否mesher需要增加类似的配置能力?

@tianxiaoliang
Copy link
Contributor

嗯 确实如此,但是在sidecar部署模式下没有这个问题 mesher和服务同ip,mesher只有在edge模式下才需要把这个ip塞到forward header里,你可否提个PR?

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

No branches or pull requests

2 participants