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

Why does the host domain name change to ip + port number when it reaches the client through shenyu Gateway? #5773

Open
wang-haodong opened this issue Nov 12, 2024 · 4 comments
Labels
type: question Further information is requested

Comments

@wang-haodong
Copy link

Question

Why does the host domain name change to ip + port number when it reaches the client through shenyu Gateway?

shenyu version:2.6.0

@wang-haodong wang-haodong added the type: question Further information is requested label Nov 12, 2024
@wang-haodong
Copy link
Author

image The host printed here is a normal domain name image After arriving at the server, it becomes the ip + port of the service itself

@titxue
Copy link

titxue commented Dec 19, 2024

图像 这里打印的host是普通的域名 图像 ,到服务器之后就变成了服务本身的ip+port

shenyu目前代理时候目前是会把host删除掉,是不是这个原因

@wang-haodong
Copy link
Author

wang-haodong commented Dec 19, 2024 via email

@titxue
Copy link

titxue commented Dec 22, 2024

是这样的

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年12月19日 22:47 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [apache/shenyu] Why does the host domain name change to ip + port number when it reaches the client through shenyu Gateway? (Issue #5773) | 这里打印的host是普通的域名 ,到服务器之后就变成了服务本身的ip+port shenyu目前代理时候目前是会把host删除掉,是不是这个原因 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我目前是直接在源码中给这一行删除掉了,下版本可能会修复这个问题
#5781

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants