You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Later constraints or corrections from the user (quote, or none):
「不用推送 给我们本地编译下」(指先前的安全修复不推送)
「先关闭, 你功能做到的软件里面没有」——经澄清为「把穿透做进软件」
「Cloudflare 这个你能提交一个 pr么?」
Out of scope — refuse
Matched: no
If yes, what was told to the user (stop here; do not open a PR): n/a
File gate — do not file unless all are satisfied
Out of scope: no
Usage / configuration / integration (answered instead of filing): no
Required facts present without invention (bugs: actual behavior, impact, frequency and applicable type fields; features: current limitation and use case): yes
Body is short and factual; no unfiltered AI-generated text: yes
Can the current version already do this? (required for feature requests): 否。基线 e39bb7d 的 apps/desktop/scripts/build-sidecar.mjs 中 cloudflared 计数为 0,core/go.mod 中同样为 0,仓库不含任何隧道组件。
Verdict: product bug or new feature / usage question (stop here): new feature
In scope for a later PR: 控制接口的隧道状态与启停、隧道管理(仅回环目标、保留 Host)、cloudflared 随包分发与哈希固定、设置页开关与公网地址展示、安全提示。
Out of scope / not this repo: 需账号与域名的 named tunnel、Cloudflare Access 二次认证、其他隧道厂商。
Large or directional feature? If yes, this issue is for maintainer alignment; do not open a PR yet.: yes — 产品以本地隐私为核心,新增公网暴露入口属方向性变更,先在此对齐,本 issue 阶段不开 PR。
Agent issue
Agent
User request
Out of scope — refuse
File gate — do not file unless all are satisfied
Kind
Usage / configuration / integration check
tunnel、cloudflare、远程访问、remote access、穿透:无匹配文件,结论:文档未提供对外暴露能力。http://127.0.0.1:8317,无远程接入章节。core/internal/ingress/handler.go—NewProduction要求 AllowedHost 必须是固定127.0.0.1权威,否则拒绝构造。core/internal/ingress/handler.go— 请求 Host 不等于监听地址时返回421 host_forbidden。core/internal/coreapp/app.go—DefaultInferenceListen与DefaultControlListen均为回环地址。e39bb7d的apps/desktop/scripts/build-sidecar.mjs中cloudflared计数为 0,core/go.mod中同样为 0,仓库不含任何隧道组件。Environment
latest/unknown): 源码基线e39bb7d,构建版本0.1.0-dev.1Problem facts
Type-specific details
Relay / API
Cost / usage
Desktop / frontend
Installation / upgrade
bun install --frozen-lockfile+bun run tauri build)Reproduction and expected result
lsof -nP -iTCP:8317 -sTCP:LISTEN。Feature (feature requests only)
Duplicate check
tunnel、cloudflare、remote、远程、公网、穿透、expose、ngrokdocs/guides、README 与源码中均不存在隧道或对外暴露主题。Research
Docs
tunnel/cloudflare/远程访问/remote access/穿透,无匹配文件。http://127.0.0.1:8317,产品定位是本地隐私,无远程接入章节。Code
core/internal/ingress/handler.go—NewProduction强制 AllowedHost 为固定127.0.0.1权威;请求 Host 与监听地址不一致时返回421 host_forbidden。含义:任何隧道若改写 Host,请求都会被拒。core/internal/coreapp/app.go— 两个平面默认均监听回环,含义:外部默认不可达。core/cmd/astrlink-core/main.go—NewInferenceHandler收到的是 listener 绑定之后的真实地址(含端口回退),含义:这是隧道目标唯一可信来源。Experiments
lsof -nP -iTCP:8317 -sTCP:LISTENObserved result:
127.0.0.1:8317Conclusion: 仅监听回环,外部不可达。
curl -X POST http://127.0.0.1:8317/v1/chat/completions -H "Host: anything.trycloudflare.com" -H "Content-Type: application/json" -d '{"model":"x"}'Observed result:
HTTP 421,{"code":"host_forbidden","message":"request Host does not match the inference listener"}Conclusion: 隧道转发必须保留原 Host,否则必然 421。
git show e39bb7d:apps/desktop/scripts/build-sidecar.mjs | grep -c cloudflared与git show e39bb7d:core/go.mod | grep -c cloudflaredObserved result: 均为
0Conclusion: 当前版本不含任何隧道组件。
Working theory
Scope
Proposed direction
Not verified
Related