mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
feat: 将注释修改成英文
This commit is contained in:
@@ -164,7 +164,7 @@ export class IDEServer {
|
|||||||
const allowedHosts = [
|
const allowedHosts = [
|
||||||
`localhost:${this.port}`,
|
`localhost:${this.port}`,
|
||||||
`127.0.0.1:${this.port}`,
|
`127.0.0.1:${this.port}`,
|
||||||
`host.docker.internal:${this.port}`, // 添加Docker支持
|
`host.docker.internal:${this.port}`, // Add Docker support
|
||||||
];
|
];
|
||||||
if (!allowedHosts.includes(host)) {
|
if (!allowedHosts.includes(host)) {
|
||||||
return res.status(403).json({ error: 'Invalid Host header' });
|
return res.status(403).json({ error: 'Invalid Host header' });
|
||||||
|
|||||||
Reference in New Issue
Block a user