mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
fix: 修复在docker环境中无法连接ide的问题
This commit is contained in:
parent
58d3a9c253
commit
bb8447edd7
1 changed files with 1 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ export class IDEServer {
|
|||
const allowedHosts = [
|
||||
`localhost:${this.port}`,
|
||||
`127.0.0.1:${this.port}`,
|
||||
`host.docker.internal:${this.port}`, // 添加Docker支持
|
||||
];
|
||||
if (!allowedHosts.includes(host)) {
|
||||
return res.status(403).json({ error: 'Invalid Host header' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue