Forward non-http ports and non-localhost ips
- 主要语言
- TypeScript
- 星标
- 79.3k
- 派生
- 6.8k
- 平均合并
- 2 天 6 小时
- 30 天内合并 PR
- 41
描述
### Is there an existing issue for this?
- [X] I have searched the existing issues
### OS/Web Information
- Web Browser: Safari
- Local OS: MacOS
- Remote OS: Linux
- Remote Architecture: amd64
- `code-server --version`: 4.8.0
### Steps to Reproduce
1. Spawn a service in a neighbour container
2. Under ports, paste container-ip:host
3. It tells remotehost:port is forwarded, but it is unable to do
When I open the forwarded URL proxy, it says
```
connect ECONNREFUSED 0.0.0.0:8080
```
### Expected
The service running at remotehost:port should be forwarded via web proxy
### Actual
Only locally running ports are being forwarded and remorehost:port is not being forwarded unlike VS Code Desktop. It is not even respecting the host part and just attempting to forward a locally running port.
### Logs
_No response_
### Screenshot/Video
_No response_
### Does this issue happen in VS Code or GitHub Codespaces?
- [X] I cannot reproduce this in VS Code.
- [X] I cannot reproduce this in GitHub Codespaces.
### Are you accessing code-server over HTTPS?
- [X] I am using HTTPS.
### Notes
_No response_
贡献指南
调研方向
未指定文件、测试或入口点。首先,在相邻容器中的服务上使用非 localhost 地址重现 issue 5723,然后跟踪端口转发 Web 代理路径。完成的标准是转发后的 URL 能够到达远程主机和端口,而不是尝试使用本地地址。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100