fix: match the web's dev-server filtering on the phone

The web's "running dev servers" list shows ports that belong to a known
project (the current one included) or arrive without a directory; ports
started outside every project sit behind "show hidden ports". 0.7.2 listed
every port that answered with a page, which showed more servers on the
phone than in the web. The phone now applies the same known-project filter,
so the telegram server on 8080 and the directory-less 9090 both appear.

Version 0.7.3+703.
This commit is contained in:
blumia committed 2026-12-04 14:32:48 +08:00
1 parent b372bce63f
commit 4bd9256ef8
4 files changed
+33 -7

No files matched your search

+9
View File
@@ -5,6 +5,15 @@
---
## 0.7.3 开发服务器列表与网页端同一套过滤(分支 `flutter`)
| 项 | 结果 |
| --- | --- |
| 列表 | 0.7.2 放开了项目目录过滤,结果把 `~/.config/pitchfork`、`~/Downloads` 等不在项目列表里的端口也列了出来(手机 7 个,网页只有 2 个)。现在按网页端的规则:只列出「返回了网页」且目录属于已知项目(含当前目录)或没有目录(announced)的端口;不在任何项目里的端口像网页端一样隐藏在「显示已隐藏端口」之后。Telegram 的 8080 属于已知项目、9090 没有目录,两者都会显示 |
| 版本 | **0.7.3(code 703)** |
---
## 0.7.2 开发服务器列表改为全机器范围(分支 `flutter`)
| 项 | 结果 |