Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3efc135f00 | ||
|
|
888358a6b6 | ||
|
|
08ee2275fb | ||
|
|
add9ed489e | ||
|
|
bd8b58a6cf |
No files matched your search
@@ -1,12 +1,38 @@
|
||||
# FNA_V3维护入口
|
||||
# FNA_V3 项目维护入口
|
||||
|
||||
项目工作先读 GemDocs AI版项目总览、维护协议及 `/Users/hellcat/Documents/GemDocs/AI版/10-项目/fna_v3.md`。线上事务优先经白色机 SSH;网页与订阅 HTTP 访问须符合 GemDocs 的反代规则。
|
||||
|
||||
订阅检测已独立为 SubCheck,入口见 [SubCheck](/Users/hellcat/Documents/GemCodes/subcheck/AGENTS.md);cfn来源适配与调查见 [CFN.md](/Users/hellcat/Documents/GemCodes/subcheck/docs/CFN.md)。fnb不再保存检测实现。代码、凭据、业务数据及并行修改按当前任务授权处理。
|
||||
|
||||
## FNA_V3 本地副本维护
|
||||
|
||||
CFN页头SVG猫和两行品牌文字的维护与回退见[品牌标志](docs/maintenance/BRANDING.md),已于2026-10-31发布,见[界面发布记录](docs/maintenance/UI_RELEASE_2026-10-31.md)。
|
||||
|
||||
本目录为独立 FNA_V3 副本,身份与环境以 GemDocs AI版 `10-项目/fna_v3.md` 为准;上述 FN_B 入口保留来源背景,不代表授权修改 FN_B。文章广告实现、配置与验收见 [广告维护说明](docs/maintenance/ADVERTISING.md)。统一机场推荐数据、正文替换和教程末尾展示见[机场推荐维护](docs/maintenance/AIRPORT_RECOMMENDATIONS.md),已于2026-10-31发布,见[界面发布记录](docs/maintenance/UI_RELEASE_2026-10-31.md)。免费节点详情页的只读结构化渲染、订阅保护与回退见[内容页重设计](docs/maintenance/FREENODE_ARTICLE_LAYOUT.md)。
|
||||
|
||||
SEO 的只读审计、优化顺序与逐项验收统一维护在 [SEO 优化建议与执行清单](docs/maintenance/SEO_PLAN.md),2026-10-22 建立。清单中的建议不代表已实施,后续按用户指定项目推进并更新本文件所链接的唯一正文。
|
||||
|
||||
## CFN系绘图接手
|
||||
|
||||
2026-10-23用户明确将此前由张天承担的绘图工作交给“画师【CFN系】”(personnel-position:cd029d9db8454ec68172b221ff35e6f6)。FNA_V3主程继续开发工作,后续绘图由该画师岗位承接,避免重复制作。本记录仅转交绘图范围,不改变开发或上线权限;未向原聊天发送消息。
|
||||
|
||||
风格已从原聊天最近作品及本地成图核实:现代主义剪纸拼贴、哑光色块、轻微丝网印刷颗粒、成熟动物比例、非对称构图和大块留白。参考文件在本项目output/imagegen/:freenode-dog-dalmatian-20261023.png、freenode-dog-dachshund-20261023.png、freenode-dogs-dance-20261023.png;同名txt保存完整提示词。延续视觉语言,每张更换主题或构图,不照搬布局。
|
||||
|
||||
接手首张试画及提示词:/Users/hellcat/Documents/Codex/2026-10-23/cfn/outputs/cfn-tuxedo-cat-20261023.png 和同名txt。用户已认可风格并继续扩充;2026-10-26按授权与后续猫狗作品一起归档到Resource V2,并接入本地FNA_V3,未发布到线上。归档和栏目配图的唯一维护入口见[本地插画资源与配图](docs/maintenance/ILLUSTRATIONS.md)。
|
||||
|
||||
教程栏目现为“入门教程”(/client)和“综合教程”(/advanced,原进阶教程)。栏目改名、首篇重写、DNS进阶文章及内容回退见[教程栏目维护](docs/maintenance/TUTORIALS.md)。原七篇旧教程均已处理:迁移文归进阶,其余按Android、iOS、Mac和Linux重写;另有Windows纯入门与DNS进阶文章。正文、图解和关联已本地验收,本地内容不代表线上发布。
|
||||
|
||||
## FNA 静态配图副本
|
||||
|
||||
2026-10-30起Resource保留原稿、图池和固定分配,FNA保存按内容去重的公开展示副本,由本站Nginx直接提供。同步、创建时校验、撤回、缓存与部署验收唯一正文见[静态配图副本](docs/maintenance/LOCAL_ILLUSTRATIONS.md)。用户访问图片不调用Resource、不执行PHP修复。
|
||||
2026-10-30起Resource保留原稿、图池和固定分配,FNA保存按内容去重的公开展示副本,由本站Nginx直接提供。同步、创建时校验、撤回、缓存与部署验收唯一正文见[静态配图副本](docs/maintenance/LOCAL_ILLUSTRATIONS.md)。用户访问图片不调用Resource、不执行PHP修复。2026-10-31明确源端删除/停用不影响FNA独立副本或已有文章关联,修复与恢复原图记录见[独立副本保留修复](docs/maintenance/INDEPENDENT_ILLUSTRATIONS_FIX_2026-10-31.md)。
|
||||
|
||||
## AI 文章写作(必读)
|
||||
|
||||
文章写作和发布先读docs/content/WRITING.md及docs/maintenance/EDITORIAL_API.md。项目身份和访问边界先读GemDocs AI版项目总览、维护协议及10-项目/fna_v3.md。
|
||||
后续为 FNA_V3 选题、写作、重写、调整分类或撤下文章时,必须先读[AI写作与文章关联索引](docs/content/WRITING.md)。它是文章用途、稳定地址和正文关系的唯一登记入口。公开文章禁止出现“核对范围”“未实测”等内部核验/验收说明,具体禁止项与发布前检查按该写作规范执行;相关事实只留项目维护记录。写作时复用相关的下载、入门、进阶和排错内容,自然设置内链,并检查相关旧文是否需要补入口;完成后同步正文源、运行数据库和该索引,验收真实目标与锚点。未创建的文章不能编造链接,本地生效不能写成已上线;不自动开展全站重写或发布。
|
||||
|
||||
## 独立文章发布 API
|
||||
|
||||
用户已明确文章直接发布到 FNA_V3,不经过 ATOM。实现、调用契约、凭据边界及验收见[独立文章 API](docs/maintenance/EDITORIAL_API.md)。后续写稿使用本站草稿→签名预览→按hash发布→回执核对流程;相关旧文内链修改可同批提交。不要再用临时SQL脚本发布普通编辑文章。旧文首次接管必须显式指定原文章ID并保留URL;发布结果未知先查原请求UUID。代码已于2026-10-29随正式切换部署,生产临时编辑密钥在教程迁移后删除、接口默认关闭;后续按明确写作/发布任务临时启用并在完成后关闭,不扩大线上访问或发布范围。正式部署、备份、Git SHA及验收统一见[发布记录](docs/maintenance/RELEASE_PREFLIGHT_2026-10-28.md#正式切换2026-10-29)。
|
||||
|
||||
插画完成后按[自动交付](docs/maintenance/ILLUSTRATION_DELIVERY.md)提交批准批次;不要再手工上传发布/编辑图池或把保存草稿当作上线完成。
|
||||
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'dpl' => ['enabled' => env('DPL_AD_ENABLED', true), 'url' => env('DPL_AD_URL', 'https://dp-link.net/')],
|
||||
'fuc' => ['enabled' => env('FUC_AD_ENABLED', true), 'url' => env('FUC_AD_URL', 'https://xn--123-9i9dj97q.com/')],
|
||||
'dpl' => [
|
||||
'enabled' => env('DPL_AD_ENABLED', true),
|
||||
'url' => 'https://dp-link.net/',
|
||||
],
|
||||
'hn' => [
|
||||
'enabled' => env('HN_AD_ENABLED', true),
|
||||
'url' => env('HN_AD_URL', 'https://hardnerd.net/'),
|
||||
'url' => env('HN_AD_URL', env('APP_ENV', 'production') === 'local' ? 'http://hn.loc/' : 'https://hardnerd.net/'),
|
||||
],
|
||||
'fuc' => [
|
||||
'enabled' => env('FUC_AD_ENABLED', true),
|
||||
'url' => env('FUC_AD_URL', 'https://xn--123-9i9dj97q.com/'),
|
||||
],
|
||||
];
|
||||
@@ -27,7 +27,7 @@
|
||||
'price' => '28', 'period' => '元 / 月',
|
||||
'features' => ['流媒体解锁', 'AI 解锁'],
|
||||
'description' => '专线机场,适合对网络质量有要求的用户,有一次性套餐',
|
||||
'coupon' => null, 'discount' => null,
|
||||
'coupon' => 'clashfreenode.com', 'discount' => '9 折',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
# 2026-10-31矮版广告素材
|
||||
|
||||
李响制作、用户确认的三张最终素材及完整提示词。正式展示只使用assets.json登记的最终PNG;本地中间迭代图不作为生产候选。
|
||||
|
||||
固定广告位3.675:1、cover取景,福云center 40%。每次打开随机选一张,候选在template中,活动DOM只加载选中的一张;没有新增接口或轮播。原旧图保留用于恢复,不在同页叠加。
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"dpl": {
|
||||
"path": "public/images/ads/dpl-ad-compact-wordmark-20261031.png",
|
||||
"width": 2169,
|
||||
"height": 725,
|
||||
"sha256": "c0742c8f7102ea2ebb70feea5caa9113ef032df54e2ab9d9097d797a5a12e92b"
|
||||
},
|
||||
"hn": {
|
||||
"path": "public/images/ads/hn-ad-compact-lowercase-20261031.png",
|
||||
"width": 2021,
|
||||
"height": 778,
|
||||
"sha256": "6b1d981d4fe461d5f7a00f3f0ad79cad3ea92b767ddb13b5fd4acb1c9cb022ff"
|
||||
},
|
||||
"fuc": {
|
||||
"path": "public/images/ads/fuc-ad-compact-five-years-20261031.png",
|
||||
"width": 2141,
|
||||
"height": 734,
|
||||
"sha256": "48e26721e3d05f9e7ebedf8e08d182aad2b0f5f8e656f2d8a09122053692f045"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Use case: ads-marketing, identity-preserving redesign. Reference image: existing approved DPL advertisement, brand identity/style reference only. Create a NEW COMPOSITION for an EXTRA WIDE SHORT horizontal banner, exact target 1962x534 pixels, aspect ratio 3.674:1. This is NOT a smaller copy of the tall original and NOT original art centered with empty side gutters. Design natively to fill every edge of this short wide canvas. Preserve exact blue rounded DPL mark with white layered signal lines and DPL letters, dark navy blue grid background, blue/purple cyan gradient headline, subtle orbital network globe. Redesign layout: small DPL brand upper left, readable medium large headline below and a restrained short supporting line, compact blue CTA integrated lower left. Right half: simplified three slim floating network region cards with tiny flags and bars, arranged laterally in a shallow diagonal, not vertically stacked tall. Text EXACT: "DPL", "畅连全球网络", "日常访问 · 远程办公 · 在线娱乐", "查看套餐", and on cards "美国 · US", "日本 · JP", "香港 · HK". Tiny gray "广告" upper right. No numeric promises or extra text. Refined visual hierarchy: main headline about66px at1962wide; secondary32px; CTA32px. Strong whitespace without huge logo or giant headline. All elements comfortably within534pxheight, no cropping, no stretching, no mockup frame. Full-bleed native wide banner with well-balanced optical composition.
|
||||
@@ -0,0 +1 @@
|
||||
Use case: text-localization. Edit the provided existing DPL compact horizontal advertisement. Change ONLY the small white brand wordmark beside the blue logo in the upper left from "DPL" to EXACT uppercase "DP-LINK.NET". Keep its height and clean sans serif font weight similar to the existing DPL text; extend the wordmark naturally to the right with refined tight optical kerning and balanced icon-to-text gap. Preserve the blue logo icon EXACTLY. Preserve every other pixel/compositional element as closely as possible: wide aspect ratio, dark navy grid, globe, region cards, gradients, headline "畅连全球网络", subtitle "日常访问 · 远程办公 · 在线娱乐", button "查看套餐", tiny 广告. No other wording changes. Do not redesign, enlarge, move or crop anything else. The replacement wordmark must read D P hyphen L I N K dot N E T: "DP-LINK.NET".
|
||||
@@ -0,0 +1 @@
|
||||
Use case: text-localization. Edit the supplied existing FUC purple rocket advertisement. Replace ONLY the large white headline "全球网络中继服务" with EXACT "全球网络加速". Replace ONLY the smaller lavender subtitle "随时随处,尽情使用" with EXACT "五年稳定运营". Keep headline and subtitle left aligned with the same existing left edge, approximately same font size and weight as their respective old lines, retaining natural refined character spacing instead of stretching the shorter phrases to fill the previous width. Preserve existing logo and 福云 wordmark EXACTLY, deep purple starry background, rocket, planets, orbital curves, white 开始使用 button with arrow, tiny 广告 top-right, all positions and original wide canvas. No other wording or visual changes. Exact Chinese text is mandatory: 全球网络加速 / 五年稳定运营.
|
||||
@@ -0,0 +1 @@
|
||||
Use case: ads-marketing. Input1: CURRENT FUC homepage screenshot, visual-style reference ONLY, not a composition to crop or reuse. Input2: current official FUC continuous-cloud purple logo, brand mark reference, reproduce its distinctive exact loop/cloud shape; no giant 福 character. Design a NEW polished short extra-wide FUC display advertisement, target1962x534px, aspect3.674:1. Full-bleed deep royal purple #3e269d background, restrained violet/magenta orbital curves and sparse tiny stars, inspired by CURRENT homepage. Left quarter: tasteful official purple cloud mark paired with WHITE Chinese wordmark "福云" at restrained size, enough contrast. Middle-left/main area: readable bold WHITE exact headline "全球网络中继服务"; below smaller muted lavender exact subtitle "随时随处,尽情使用". Lower-left small refined white rounded pill CTA with purple exact text "开始使用" and a small right arrow. Right third: sophisticated minimal purple rocket/orbital illustration with soft magenta planet glow and flowing curved paths, not childish clipart, modest supporting scale. Allow strong clean negative space. Tiny light lavender "广告" upper right. Do NOT use old huge 福 glyph, white/lilac background, Netflix/video stills, platform trademarks, UI navbar or page chrome. No pricing, speed claims, numbers or extra text. Careful typography and compact horizontal hierarchy that belongs to a534px tall canvas. Not a scaled down tall ad, no side padding gutters or outer borders. Native full-width short banner.
|
||||
@@ -0,0 +1 @@
|
||||
Use case: text-localization and typography refinement. Edit this existing compact HN advertisement. Preserve exact H/lime-glasses icon, dark charcoal background, teal and violet glows, wide canvas and all Chinese wording. Change brand wordmark to EXACT all lowercase "hardnerd" (lowercase h, not capital H). Enlarge this gradient brand WORDMARK by about18 percent compared with current, keeping icon roughly current size and optically aligned beside wordmark; brand group centered. Shrink lower white Chinese tagline by about20 percent: exact "硬核架构,品质专线,全球网络畅通无阻". Increase clear vertical gap between brand row and tagline from current roughly50px to about95px at original2021px width. Put brand row around y300, tagline around y475; center the overall two-row composition. Refined restrained natural letter spacing, tagline on one line, no exaggerated tracking. Preserve plenty of safe space within central2021x550 visible banner crop; all main content stays within y180..570. Keep tiny gray 广告 upper right, no other text or graphics. Do not change the icon design. No CTA. Main requested changes only: brand larger and lowercase, tagline smaller, more space between rows.
|
||||
@@ -0,0 +1 @@
|
||||
Use case: ads-marketing, identity-preserving redesign. Reference image: current Hardnerd advertisement, brand style/logo/text reference only. Create a NEW native extra-wide short banner 1962x534px, aspect ratio3.674:1. Do not scale down the tall old advertisement or letterbox it. Fill full canvas edge-to-edge with charcoal black, restrained teal glow left and violet glow right. Preserve EXACT H lime-glasses icon and gradient wordmark "Hardnerd" with capital H, original brand forms. Recompose using generous horizontal room: cohesive brand group centered around x981 y210, width about650px, icon balanced approximately95pxheight, wordmark about88px high. Below at y350 put the exact white tagline on one line "硬核架构,品质专线,全球网络畅通无阻", around42px font with subtle restrained natural tracking, not exaggerated wide character spacing. Tiny understated gray "广告" upper right. Keep whole group visually centered with balanced top/bottom margins, enough gap between brand and tagline. Only these texts. No green footer, no button or CTA, no shine or overly dramatic effects, no frame. Mature premium quiet typography designed for this exact short wide canvas, crisp legible Chinese and consistent brand proportions.
|
||||
@@ -8,6 +8,8 @@ # AI 写作与文章关联索引
|
||||
|
||||
本文是写作流程、文章用途及文章关系的唯一维护入口。文章正文保存在各自源文件,数据库是页面实际读取的内容;栏目实现、渲染与备份方法见[教程维护](../maintenance/TUTORIALS.md),SEO项目状态见[SEO清单](../maintenance/SEO_PLAN.md)。不要在这些文档中再复制一份持续更新的文章关系表。
|
||||
|
||||
2026-10-31新增[统一机场推荐模块](../maintenance/AIRPORT_RECOMMENDATIONS.md):入门/综合教程自动在末尾展示,综合教程由展示层补入文内跳转;不要在正文源重复维护机场价格、地址和优惠码,也不要创建同名airport-recommendations锚点。已随[界面发布](../maintenance/UI_RELEASE_2026-10-31.md)上线。
|
||||
|
||||
## 1 写作前先确定读者要完成的任务
|
||||
|
||||
- 入门教程:以第一次使用为前提,讲准备、下载、安装、配置、使用和基本排错。不要把客户端迁移作为普通入门教程的主线。
|
||||
@@ -65,6 +67,9 @@ ## 2 当前文章登记
|
||||
| cfw-mac-legacy | 210 / Mac | Clash Verge Rev 使用教程:Mac 安装、订阅与系统代理 | `/a/m173.html` | [verge-mac.md](tutorials/verge-mac.md);本地API版本2 | Mac操作入口;#install DMG安装,#import 订阅,系统代理与退出排错;无设备联网实测 |
|
||||
| cfw-linux-legacy | 211 / Linux | Clash Verge Rev 使用教程:Linux 安装、订阅与代理设置 | `/a/m174.html` | [verge-linux.md](tutorials/verge-linux.md);本地API版本5 | Linux桌面入门;#install 包格式与架构,#import 订阅,#terminal 单条curl代理验证;不适用于无桌面的服务器 |
|
||||
| system-proxy-vs-tun | 365 / 综合教程 | 系统代理和 TUN 有什么区别?接管范围、使用选择与排错 | `/a/system-proxy-vs-tun.html` | [system-proxy-tun.md](tutorials/system-proxy-tun.md);本地API版本1 | 桌面代理接管与出口选择;`#choose` 场景选择、`#switch` 切换检查、`#troubleshoot` 排错;三张流程图 |
|
||||
| clash-routing-modes | 366 / 综合教程 | Clash 规则、全局和直连怎么选?代理组与分流排错教程 | `/a/clash-rule-global-direct.html` | [clash-routing-modes.md](tutorials/clash-routing-modes.md);2026-10-31本地ID366/版本1,正式ID382/版本1已发布 | 模式选择与代理组分流;`#groups` 组内选择、`#custom` 添加规则、`#verify` 验证新连接 |
|
||||
|
||||
2026-10-31新教程正式ID382/版本1、本地ID366/版本1已发表;系统代理/TUN正文补入口后两环境均为API版本2(正式ID376、本地ID365)。正式发布时间14:58:28北京时间,IndexNow由VPS-003提交返回200,服务器HTTP与图哈希/锚点验收通过。唯一状态与恢复记录见[规则模式教程发布记录](../maintenance/ROUTING_MODES_2026-10-31.md)。
|
||||
|
||||
这里只登记长期编辑内容及值得复用的稳定资源说明,不逐条收录日更节点或账号文章。稳定入口为 `/`(当前免费节点)、`/freenode`(历史分享归档)、`/client`(入门)、`/advanced`(综合教程);平台入口和名称修改另按项目路由核对,不从名称自行拼接。
|
||||
|
||||
@@ -107,6 +112,10 @@ ## 3 已有文章关系
|
||||
| system-proxy-vs-tun | cfw-mac-legacy `#enable` | 切换前完成 Mac 基本连接 | 已在本地正文实现 |
|
||||
| system-proxy-vs-tun | cfw-linux-legacy `#connect` / `#terminal` | Linux 基础连接及单条命令显式代理 | 已在本地正文实现 |
|
||||
| system-proxy-vs-tun | mihomo-dns `#dns-2` | 继续检查 DNS 接管、加密和出口 | 已在本地正文实现 |
|
||||
| system-proxy-vs-tun | clash-routing-modes `#groups` | 已接管但走错出口时检查规则和代理组;放在场景选择之前 | 2026-10-31本地与正式已发布 |
|
||||
| clash-routing-modes | verge-windows-start `#enable` / cfw-mac-legacy `#enable` | 尚未完成基本连接时返回对应平台操作 | 2026-10-31本地与正式已发布 |
|
||||
| clash-routing-modes | system-proxy-vs-tun `#routing` / `#troubleshoot` | 解释接管和分流的区别,以及看不到连接时排错 | 2026-10-31本地与正式已发布 |
|
||||
| clash-routing-modes | mihomo-dns `#dns-2` | 出口正确但域名解析仍异常时继续查DNS | 2026-10-31本地与正式已发布 |
|
||||
|
||||
两篇Android教程通过订阅格式段落互链;Mac下载指南与操作教程互链,Linux从下载指南和真实Linux栏目获得入口,iOS沿用真实iOS栏目入口。系统代理与TUN专题由Windows和DNS正文提供入口,并指向三平台的基础操作及DNS专题。目录、标签、导航和热门榜不算正文关联;正文内链及锚点已经本地HTTP验证。
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# 规则、全局与直连配图
|
||||
|
||||
原生 SVG 为可编辑源,PNG 为文章 API 上传用图;未使用外部截图。封面沿用 system-proxy-tun-cover.svg 的现有样式;正文两图分别表达路由模式与代理组选择路径。
|
||||
|
||||
- `cover.svg` / `cover.png`:960×540。
|
||||
- `modes.svg` / `modes.png`:1000×670。
|
||||
- `groups.svg` / `groups.png`:1000×610。
|
||||
|
||||
正文源:../../clash-routing-modes.md。技术图使用本机 Chrome 在禁网页面渲染,正式展示副本通过文章资产 API 发布。制作/发布记录见 ../../../../maintenance/ROUTING_MODES_2026-10-31.md。
|
||||
|
After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="540" viewBox="0 0 960 540"><rect width="960" height="540" fill="#eaf2f7"/><rect x="55" y="62" width="6" height="412" fill="#347c99"/><g font-family="Arial, PingFang SC, Microsoft YaHei, sans-serif"><text x="97" y="130" font-size="24" fill="#47748a" letter-spacing="3">代理设置 · 综合教程</text><text x="97" y="265" font-size="51" fill="#18394d" font-weight="700">规则、全局与直连</text><text x="100" y="327" font-size="30" fill="#547084">分流模式 · 代理组 · 连接验证</text><path d="M100 403H725" stroke="#92b6c9" stroke-width="3"/><circle cx="100" cy="403" r="9" fill="#347c99"/><circle cx="410" cy="403" r="9" fill="#347c99"/><circle cx="725" cy="403" r="9" fill="#347c99"/></g></svg>
|
||||
|
After Width: | Height: | Size: 775 B |
|
After Width: | Height: | Size: 84 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="610" viewBox="0 0 1000 610"><rect width="1000" height="610" rx="20" fill="#f0f5f7"/><g font-family="PingFang SC, Microsoft YaHei, sans-serif"><text x="45" y="64" font-size="34" fill="#264658" font-weight="600">同一条影音规则,两种不同的组内选择</text><text x="45" y="115" font-size="29" fill="#264658" font-weight="600">情况一:影音组直接选择节点甲</text><rect x="45" y="145" width="275" height="95" rx="14" fill="#fff" stroke="#bed0d9"/><text x="69" y="204" font-size="30" fill="#264658" font-weight="600">影音规则</text><text x="326" y="204" font-size="29" fill="#264658" font-weight="400">→</text><rect x="363" y="145" width="275" height="95" rx="14" fill="#fff" stroke="#bed0d9"/><text x="387" y="204" font-size="30" fill="#264658" font-weight="600">影音组</text><text x="644" y="204" font-size="29" fill="#264658" font-weight="400">→</text><rect x="681" y="145" width="275" height="95" rx="14" fill="#e3edf3" stroke="#bed0d9"/><text x="705" y="204" font-size="30" fill="#264658" font-weight="600">节点甲</text><text x="45" y="285" font-size="26" fill="#5d7380" font-weight="400">调整“节点选择”不会改变上面这条选择路径。</text><text x="45" y="345" font-size="29" fill="#264658" font-weight="600">情况二:影音组选择另一个代理组</text><rect x="45" y="375" width="195" height="95" rx="14" fill="#fff" stroke="#bed0d9"/><text x="69" y="434" font-size="30" fill="#264658" font-weight="600">影音规则</text><text x="246" y="434" font-size="29" fill="#264658" font-weight="400">→</text><rect x="283" y="375" width="195" height="95" rx="14" fill="#fff" stroke="#bed0d9"/><text x="307" y="434" font-size="30" fill="#264658" font-weight="600">影音组</text><text x="484" y="434" font-size="29" fill="#264658" font-weight="400">→</text><rect x="521" y="375" width="195" height="95" rx="14" fill="#fff" stroke="#bed0d9"/><text x="545" y="434" font-size="30" fill="#264658" font-weight="600">节点选择</text><text x="722" y="434" font-size="29" fill="#264658" font-weight="400">→</text><rect x="759" y="375" width="195" height="95" rx="14" fill="#e3edf3" stroke="#bed0d9"/><text x="783" y="434" font-size="30" fill="#264658" font-weight="600">节点乙</text><text x="45" y="515" font-size="26" fill="#5d7380" font-weight="400">此时调整“节点选择”,才会影响影音连接的后续出口。</text><text x="45" y="571" font-size="26" fill="#5d7380" font-weight="400">示意组名:请以自己的配置与新连接详情为准。</text></g></svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 75 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="670" viewBox="0 0 1000 670"><rect width="1000" height="670" rx="20" fill="#f0f5f7"/><g font-family="PingFang SC, Microsoft YaHei, sans-serif"><text x="45" y="64" font-size="34" fill="#264658" font-weight="600">模式决定:已进入客户端的连接怎样出去</text><rect x="45" y="105" width="910" height="86" rx="14" fill="#fff" stroke="#bed0d9"/><text x="75" y="159" font-size="32" fill="#264658" font-weight="600">请求已进入 Mihomo</text><rect x="45" y="245" width="154" height="100" rx="14" fill="#e1ece8" stroke="#bed0d9"/><text x="87" y="306" font-size="32" fill="#264658" font-weight="600">规则</text><text x="214" y="306" font-size="32" fill="#264658" font-weight="400">→</text><rect x="265" y="245" width="330" height="100" rx="14" fill="#fff" stroke="#bed0d9"/><text x="290" y="305" font-size="29" fill="#264658" font-weight="400">匹配当前规则</text><text x="612" y="306" font-size="32" fill="#264658" font-weight="400">→</text><rect x="665" y="245" width="290" height="100" rx="14" fill="#fff" stroke="#bed0d9"/><text x="685" y="305" font-size="26" fill="#264658" font-weight="400">代理组 / 直连 / 拒绝</text><rect x="45" y="375" width="154" height="100" rx="14" fill="#e1eaf3" stroke="#bed0d9"/><text x="87" y="436" font-size="32" fill="#264658" font-weight="600">全局</text><text x="214" y="436" font-size="32" fill="#264658" font-weight="400">→</text><rect x="265" y="375" width="330" height="100" rx="14" fill="#fff" stroke="#bed0d9"/><text x="290" y="435" font-size="29" fill="#264658" font-weight="400">使用 GLOBAL 当前选择</text><text x="612" y="436" font-size="32" fill="#264658" font-weight="400">→</text><rect x="665" y="375" width="290" height="100" rx="14" fill="#fff" stroke="#bed0d9"/><text x="685" y="435" font-size="26" fill="#264658" font-weight="400">选中的节点或策略</text><rect x="45" y="505" width="154" height="100" rx="14" fill="#efe9df" stroke="#bed0d9"/><text x="87" y="566" font-size="32" fill="#264658" font-weight="600">直连</text><text x="214" y="566" font-size="32" fill="#264658" font-weight="400">→</text><rect x="265" y="505" width="330" height="100" rx="14" fill="#fff" stroke="#bed0d9"/><text x="290" y="565" font-size="29" fill="#264658" font-weight="400">使用本地网络</text><text x="612" y="566" font-size="32" fill="#264658" font-weight="400">→</text><rect x="665" y="505" width="290" height="100" rx="14" fill="#fff" stroke="#bed0d9"/><text x="685" y="565" font-size="26" fill="#264658" font-weight="400">直接连接目标</text><text x="45" y="645" font-size="26" fill="#5d7380" font-weight="400">未进入客户端的连接,不会仅因切换模式而被接管。</text></g></svg>
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1 @@
|
||||
<link rel="stylesheet" href="/css/tutorials.css"><div class="tutorial-body"><p>同一个网站,规则模式打不开,切成全局却正常;明明选了新节点,连接记录里还是另一个名字。遇到这类问题,先看这条连接实际走了哪条规则、哪个代理组,再决定要改什么。</p><p>本文以 Clash Verge Rev 和 Mihomo 为例,讲清规则、全局、直连三个模式,并完成一次“只让指定网站走指定出口”的配置。还没有完成导入和首次连接,可以先看 <a href="/a/clash-verge-rev-windows.html#enable">Windows 入门教程</a>;Mac 用户可以从<a href="/a/m173.html#enable">对应操作步骤</a>开始。</p><nav class="guide-toc" aria-label="文章目录"><strong>阅读路线</strong><a href="#modes">三个模式怎么选</a><a href="#groups">为什么换节点没效果</a><a href="#order">规则先后顺序</a><a href="#custom">添加一条网站规则</a><a href="#verify">从连接记录验证</a><a href="#troubleshoot">按现象排查</a></nav><h2 id="modes">01 三个模式,改变的是出口选择</h2><p>先确定前提:请求已经进入了客户端。系统代理、应用自身代理设置和 TUN 负责把流量送进来,下面三个模式负责决定进去以后怎样处理。未被接管的应用,不会因为切到全局就自动经过客户端;接管方式见<a href="/a/system-proxy-vs-tun.html#routing">系统代理与 TUN 的区别</a>。</p><div class="table-wrap"><table><thead><tr><th>模式</th><th>进入客户端后的普通业务连接</th><th>适合什么时候用</th></tr></thead><tbody><tr><td>规则(Rule)</td><td>按当前配置匹配规则,选择直连、代理组或其他策略</td><td>日常分流:不同网站使用不同出口</td></tr><tr><td>全局(Global)</td><td>使用 GLOBAL 组当前选择的节点或策略</td><td>临时对比:判断问题是否与分流结果有关</td></tr><tr><td>直连(Direct)</td><td>由本地网络直接连接目标</td><td>临时检查本地网络,或不需要代理出口时</td></tr></tbody></table></div><p>这三个模式是路由选择,不是速度档位。全局也要检查 GLOBAL 组究竟选了什么:如果选的是 DIRECT,结果仍然是直连;如果选的是另一个代理组,还要继续看那个组的选择。<a href="https://wiki.metacubex.one/config/general/">Mihomo 运行模式说明</a></p><p>直连模式也不等于退出客户端:系统代理、TUN 等入口可能仍开启。要停用接管,需要处理对应开关,不能只把模式改成“直连”。<a href="https://www.clashverge.dev/guide/term.html">Clash Verge Rev 名词解释</a></p><figure class="guide-figure"><img src="/images/editorial/98a43bdd771dd4c6c5ec6b87bb5f0ebf679fa2b228dddbb764adecf50b0374e9.png" alt="请求进入客户端后,规则模式按规则分流,全局模式使用 GLOBAL 选择,直连模式使用本地网络" width="1000" height="670"><figcaption>图 1:模式作用于已进入客户端的连接;切模式不会补上接管范围的缺口。</figcaption></figure><h2 id="groups">02 换了节点没效果,可能换错了组</h2><p>代理页里有“节点选择”“流媒体”“自动选择”等分组时,不要把它们当成一排作用相同的开关。规则通常先指向一个组,组再选节点,也可能继续选另一个组。</p><p>例如,一份配置把视频网站分给“影音”,普通网页交给“节点选择”。你在“节点选择”里换成节点乙,但“影音”仍直接选着节点甲,视频连接就可能继续走甲。只有“影音”选择了“节点选择”这个组,它才会沿着这条选择关系继续向下找出口。</p><figure class="guide-figure"><img src="/images/editorial/417b203a4af30200b6ed3b37d0b0e823a9b47db49e2d743b1110b35329cc5de8.png" alt="规则命中影音组后,该组直接选择节点甲时不经过节点选择组;选择节点选择组时才跟随其中的节点乙" width="1000" height="610"><figcaption>图 2:两种配置的差别在于“影音”组的选择。组名只是配置中的名称,实际关系要查看当前选择。</figcaption></figure><p>手动选择组(<code>select</code>)由你决定使用哪个选项;如果它选择的是自动选择组(<code>url-test</code>),后者仍会按自己的测速配置选择节点。想固定到具体节点,就检查整条选择路径,而不是只看最外层的组名。<a href="https://wiki.metacubex.one/config/proxy-groups/select/">手动选择组</a>与<a href="https://wiki.metacubex.one/config/proxy-groups/url-test/">自动选择组</a></p><p>实际排查时,可以在连接详情里找策略、代理链或类似字段。不同界面展示顺序可能不同,重点是认出“命中了哪个组”和“最终使用哪个节点”。</p><h2 id="order">03 先看顺序,再看规则写得对不对</h2><p>Mihomo 的路由规则从上往下匹配。通常前面命中的规则就决定Line truncated
|
||||
@@ -0,0 +1,98 @@
|
||||
同一个网站,规则模式打不开,切成全局却正常;明明选了新节点,连接记录里还是另一个名字。遇到这类问题,先看这条连接实际走了哪条规则、哪个代理组,再决定要改什么。
|
||||
|
||||
本文以 Clash Verge Rev 和 Mihomo 为例,讲清规则、全局、直连三个模式,并完成一次“只让指定网站走指定出口”的配置。还没有完成导入和首次连接,可以先看 [Windows 入门教程](/a/clash-verge-rev-windows.html#enable);Mac 用户可以从[对应操作步骤](/a/m173.html#enable)开始。
|
||||
|
||||
<nav class="guide-toc" aria-label="文章目录"><strong>阅读路线</strong><a href="#modes">三个模式怎么选</a><a href="#groups">为什么换节点没效果</a><a href="#order">规则先后顺序</a><a href="#custom">添加一条网站规则</a><a href="#verify">从连接记录验证</a><a href="#troubleshoot">按现象排查</a></nav>
|
||||
|
||||
<h2 id="modes">01 三个模式,改变的是出口选择</h2>
|
||||
|
||||
先确定前提:请求已经进入了客户端。系统代理、应用自身代理设置和 TUN 负责把流量送进来,下面三个模式负责决定进去以后怎样处理。未被接管的应用,不会因为切到全局就自动经过客户端;接管方式见[系统代理与 TUN 的区别](/a/system-proxy-vs-tun.html#routing)。
|
||||
|
||||
<div class="table-wrap">
|
||||
|
||||
| 模式 | 进入客户端后的普通业务连接 | 适合什么时候用 |
|
||||
| --- | --- | --- |
|
||||
| 规则(Rule) | 按当前配置匹配规则,选择直连、代理组或其他策略 | 日常分流:不同网站使用不同出口 |
|
||||
| 全局(Global) | 使用 GLOBAL 组当前选择的节点或策略 | 临时对比:判断问题是否与分流结果有关 |
|
||||
| 直连(Direct) | 由本地网络直接连接目标 | 临时检查本地网络,或不需要代理出口时 |
|
||||
|
||||
</div>
|
||||
|
||||
这三个模式是路由选择,不是速度档位。全局也要检查 GLOBAL 组究竟选了什么:如果选的是 DIRECT,结果仍然是直连;如果选的是另一个代理组,还要继续看那个组的选择。[Mihomo 运行模式说明](https://wiki.metacubex.one/config/general/)
|
||||
|
||||
直连模式也不等于退出客户端:系统代理、TUN 等入口可能仍开启。要停用接管,需要处理对应开关,不能只把模式改成“直连”。[Clash Verge Rev 名词解释](https://www.clashverge.dev/guide/term.html)
|
||||
|
||||
<figure class="guide-figure"><img src="/images/editorial/98a43bdd771dd4c6c5ec6b87bb5f0ebf679fa2b228dddbb764adecf50b0374e9.png" alt="请求进入客户端后,规则模式按规则分流,全局模式使用 GLOBAL 选择,直连模式使用本地网络" width="1000" height="670"><figcaption>图 1:模式作用于已进入客户端的连接;切模式不会补上接管范围的缺口。</figcaption></figure>
|
||||
|
||||
<h2 id="groups">02 换了节点没效果,可能换错了组</h2>
|
||||
|
||||
代理页里有“节点选择”“流媒体”“自动选择”等分组时,不要把它们当成一排作用相同的开关。规则通常先指向一个组,组再选节点,也可能继续选另一个组。
|
||||
|
||||
例如,一份配置把视频网站分给“影音”,普通网页交给“节点选择”。你在“节点选择”里换成节点乙,但“影音”仍直接选着节点甲,视频连接就可能继续走甲。只有“影音”选择了“节点选择”这个组,它才会沿着这条选择关系继续向下找出口。
|
||||
|
||||
<figure class="guide-figure"><img src="/images/editorial/417b203a4af30200b6ed3b37d0b0e823a9b47db49e2d743b1110b35329cc5de8.png" alt="规则命中影音组后,该组直接选择节点甲时不经过节点选择组;选择节点选择组时才跟随其中的节点乙" width="1000" height="610"><figcaption>图 2:两种配置的差别在于“影音”组的选择。组名只是配置中的名称,实际关系要查看当前选择。</figcaption></figure>
|
||||
|
||||
手动选择组(`select`)由你决定使用哪个选项;如果它选择的是自动选择组(`url-test`),后者仍会按自己的测速配置选择节点。想固定到具体节点,就检查整条选择路径,而不是只看最外层的组名。[手动选择组](https://wiki.metacubex.one/config/proxy-groups/select/)与[自动选择组](https://wiki.metacubex.one/config/proxy-groups/url-test/)
|
||||
|
||||
实际排查时,可以在连接详情里找策略、代理链或类似字段。不同界面展示顺序可能不同,重点是认出“命中了哪个组”和“最终使用哪个节点”。
|
||||
|
||||
<h2 id="order">03 先看顺序,再看规则写得对不对</h2>
|
||||
|
||||
Mihomo 的路由规则从上往下匹配。通常前面命中的规则就决定了后续策略,因此“更精确”不会自动获得更高优先级;精确规则如果排在已经覆盖它的规则之后,仍可能用不上。涉及 UDP 等条件时,还要注意目标策略是否具备相应支持。[路由规则与优先级](https://wiki.metacubex.one/config/rules/)
|
||||
|
||||
下面是用来理解顺序的片段,不是可以替换整个订阅的完整配置。`example.com` 是示例域名,“节点选择”必须换成你配置中真实存在的组名:
|
||||
|
||||
```yaml
|
||||
rules:
|
||||
- DOMAIN,video.example.com,节点选择
|
||||
- DOMAIN-SUFFIX,example.com,DIRECT
|
||||
- MATCH,节点选择
|
||||
```
|
||||
|
||||
在这个例子里,访问 `video.example.com` 先命中第一条,交给“节点选择”;访问 `docs.example.com` 则命中第二条,使用直连。如果把前两条交换,`video.example.com` 也会先被域名后缀规则接住。
|
||||
|
||||
`DOMAIN` 对应完整域名;`DOMAIN-SUFFIX` 对应该域名及其子域名。末尾的 `MATCH` 用于接住前面没有匹配到的连接。不要为了让某个网站使用节点,就在前面塞一条覆盖所有连接的 MATCH:那会让后面的分流规则失去机会。
|
||||
|
||||
<h2 id="custom">04 在 Verge Rev 里给一个网站添加规则</h2>
|
||||
|
||||
先选一个你确实需要调整的网站。例如,某个域名在当前网络下直连不通,而你已有能访问它的节点。只改这一项,验证后再扩展范围。
|
||||
|
||||
1. 在“订阅”页面找到**正在使用的配置**,右键选择“编辑规则”。这里维护的是该订阅的自定义规则,可以保留在后续订阅更新中。
|
||||
2. 新增规则,类型先选 `DOMAIN`,内容填写连接记录里的完整主机名,例如 `video.example.com`。不要填 `https://`、路径或整个网页地址。
|
||||
3. 代理策略选择当前配置中实际存在的代理组;需要直连时选 DIRECT,需要使用节点时选相应的组,并确认组内选择。
|
||||
4. 需要覆盖订阅中已有的分流结果时,放入**前置规则**,同时检查前面是否还有会先命中的自定义项。不要把它追加在已兜底的 MATCH 后面。
|
||||
5. 保存并确认没有配置错误,保持规则模式,然后让目标应用重新发起连接。
|
||||
|
||||
界面入口与前置/后置规则的含义可参考 [Verge Rev 自定义规则](https://www.clashverge.dev/guide/rules.html)。这与直接改下载下来的订阅正文不同;后者可能被下一次更新覆盖。
|
||||
|
||||
一个网页可能同时访问登录、图片、视频和接口等多个域名。添加主站域名后页面只恢复了一部分,先查看失败连接,再补真正需要的域名。不要因为一个资源加载失败,就直接扩大成整类域名、全部应用或全部流量。
|
||||
|
||||
<h2 id="verify">05 改完以后,检查一条新连接</h2>
|
||||
|
||||
验证时保持订阅、模式和接管方式稳定,只调整刚才那条规则或对应组的选择。打开“连接”页面,清除筛选,重新访问目标内容,找到刚建立的连接,逐项检查:
|
||||
|
||||
- **目标是否相同:** 看实际域名或 IP,而不是只认浏览器标签页上的网站名。
|
||||
- **规则是否符合预期:** 有没有命中新加的规则,还是先被另一条规则或规则集处理。
|
||||
- **策略是否正确:** 命中的组是否是你刚才修改的组,组内有没有继续指向其他组或 DIRECT。
|
||||
- **应用是否恢复:** 出口符合预期以后,再验证原先失败的操作,例如播放、登录或下载。
|
||||
|
||||
已有长连接不适合作为换规则、换节点后的唯一观察对象。可优先重连目标应用,或只关闭相关连接后重新测试;直接清空所有连接会影响其他正在使用的程序。
|
||||
|
||||
如果仍无法区分,可以做一次有控制的对比:记录当前设置,在全局模式中选择**同一个明确的节点**,重新建立目标连接。全局可用、规则模式不可用,提示你继续查分流和代理组;它并不能单独证明某一条规则错误,因为模式变化也可能影响其他配置行为。对比后切回规则模式,修正具体目标。
|
||||
|
||||
<h2 id="troubleshoot">06 几种常见现象,对应查哪里</h2>
|
||||
|
||||
<div class="table-wrap">
|
||||
|
||||
| 现象 | 下一步检查 |
|
||||
| --- | --- |
|
||||
| 换了节点,目标连接仍走旧节点 | 是否改错代理组、组里还有嵌套选择,以及观察的是否为旧连接 |
|
||||
| 明明加了代理规则,却显示 DIRECT | 当前模式、规则顺序、实际域名,以及命中组是否选了 DIRECT |
|
||||
| 全局能用,规则不能用 | 对比同一目标的新连接,确认规则模式的最终出口是否与全局相同 |
|
||||
| 网页文字出现了,图片或视频失败 | 找失败资源的域名与连接,逐项判断,不只给主站加规则 |
|
||||
| 完全找不到应用的连接记录 | 清除筛选、查看日志,再检查应用代理或 TUN 接管;规则还没到发挥作用的阶段 |
|
||||
| 订阅更新后又不对了 | 是否改了会被覆盖的订阅正文、当前配置是否切换、原代理组是否还存在 |
|
||||
|
||||
</div>
|
||||
|
||||
如果连接已经走了预期节点,但仍出现域名解析异常,继续检查 [DNS 接管、加密和出口](/a/mihomo-dns-leak.html#dns-2)。如果客户端根本看不到目标流量,则回到[系统代理与 TUN 的排查步骤](/a/system-proxy-vs-tun.html#troubleshoot)。先根据连接记录确定问题发生在哪一步,再动对应设置,通常比不断切换三个模式更有效。
|
||||
@@ -1 +1 @@
|
||||
<link rel="stylesheet" href="/css/tutorials.css"><div class="tutorial-body"><p>浏览器能打开网页,终端却一直超时;已经切到“全局”,游戏还是连不上;打开 TUN 后能用了,又担心所有网站都被送到国外。遇到这些情况,先分清两件事:<strong>流量有没有进入代理客户端,以及进入以后走哪个出口。</strong></p><p>系统代理和 TUN 主要解决第一件事,规则、全局和直连模式主要解决第二件事。本文以 Clash Verge Rev 和 Mihomo 桌面客户端为例,说明它们的区别、适用场景和检查方法。</p><nav class="guide-toc" aria-label="文章目录"><strong>阅读路线</strong><a href="#system-proxy">系统代理接管什么</a><a href="#tun">TUN 改变了什么</a><a href="#routing">为什么全局不等于全部</a><a href="#choose">应该用哪一种</a><a href="#switch">怎样切换和检查</a><a href="#troubleshoot">按现象排错</a><a href="#dns">DNS 还要单独看</a></nav><h2 id="system-proxy">01 系统代理:让应用按设置转交请求</h2><p>打开 Clash Verge Rev 的“系统代理”,客户端会修改操作系统的代理设置,把代理地址指向本机正在监听的端口。愿意读取并遵循这项设置的应用,就会把相应请求交给客户端处理。浏览器通常可以通过这种方式使用代理。<a href="https://www.clashverge.dev/guide/quickstart.html">官方快速入门</a></p><p>这里的关键是“应用遵循设置”。有的软件读取系统设置,有的软件使用自己的代理配置,还有的软件直接建立连接。同一台电脑上,浏览器正常、另一个应用不走代理,并不矛盾。</p><figure class="guide-diagram"><div class="diagram-label">图 1 · 系统代理依赖应用配合</div><div class="guide-flow"><div><b>应用读取设置</b><small>使用系统指定的代理</small></div><span aria-hidden="true">→</span><div><b>本机代理端口</b><small>请求进入 Mihomo</small></div><span aria-hidden="true">→</span><div><b>匹配出口</b><small>直连或代理节点</small></div></div><div class="guide-branch">不遵循系统代理的应用:仍按自己的网络设置连接,不会仅因这个开关而进入 Mihomo。</div><figcaption>这也解释了为什么“浏览器能用”不能代表电脑上每个应用都已经走代理。</figcaption></figure><p>如果应用提供 HTTP 或 SOCKS 代理选项,可以单独指向客户端的本机端口。地址通常是 <code>127.0.0.1</code>,端口应查看客户端当前设置,不要照抄别人的数字;HTTP、SOCKS 和混合端口也要对应正确。</p><p>终端工具同样需要看各自支持什么。以 Linux 上的 curl 为例,可以先用<a href="/a/m174.html#terminal">单条命令指定代理的方法</a>检查,不必为了一个工具马上接管整台电脑。</p><h2 id="tun">02 TUN:通过虚拟网卡接收流量</h2><p>TUN 会创建虚拟网络接口,并通过路由把符合接管条件的 IP 流量交给内核。应用不必先学会使用 HTTP 或 SOCKS 代理,因此它常用于系统代理无法覆盖的程序。Mihomo 可以处理通过 TUN 进入的 TCP、UDP 流量,但最终能否完成连接,还取决于配置、节点和目标服务。<a href="https://www.clashverge.dev/guide/term.html">官方名词解释</a></p><figure class="guide-diagram"><div class="diagram-label">图 2 · TUN 在网络路由这一层接管</div><div class="guide-flow"><div><b>应用发起连接</b><small>无需读取系统代理</small></div><span aria-hidden="true">→</span><div><b>系统路由 → TUN</b><small>进入虚拟网卡</small></div><span aria-hidden="true">→</span><div><b>Mihomo 处理</b><small>再决定实际出口</small></div></div><div class="guide-branch">被排除的地址、接口或其他未进入 TUN 的连接,仍可能走原来的网络路径。</div><figcaption>TUN 扩大了接管范围,但开关亮着不等于每一条连接都已被接管。</figcaption></figure><p>TUN 也有接管范围。自动路由、排除网段、IPv6 设置及其他 VPN 的路由,都可能影响实际路径。例如,把某个局域网网段排除在 TUN 之外,就是让它绕过这层接管;这与连接进入 Mihomo 后命中 <code>DIRECT</code> 规则不同。<a href="https://wiki.metacubex.one/config/inbound/tun/">Mihomo TUN 配置</a>、<a href="https://www.clashverge.dev/guide/bypass.html">代理绕过说明</a></p><p>日常使用图形客户端时,优先使用它提供的 TUN 设置。建立网卡和修改路由需要相应权限;Clash Verge Rev 的服务模式可让具有权限的后台服务启动内核,不代表必须一直以管理员身份运行整个界面。<a href="https://www.clashverge.dev/guide/term.html">服务模式说明</a></p><h2 id="routing">03 “全局”和 TUN 不是同一个维度</h2><p>把“规则”改成“全局”,改变的是进入内核后的出口选择。一个完全没有进入客Line truncated
|
||||
<link rel="stylesheet" href="/css/tutorials.css"><div class="tutorial-body"><p>浏览器能打开网页,终端却一直超时;已经切到“全局”,游戏还是连不上;打开 TUN 后能用了,又担心所有网站都被送到国外。遇到这些情况,先分清两件事:<strong>流量有没有进入代理客户端,以及进入以后走哪个出口。</strong></p><p>系统代理和 TUN 主要解决第一件事,规则、全局和直连模式主要解决第二件事。本文以 Clash Verge Rev 和 Mihomo 桌面客户端为例,说明它们的区别、适用场景和检查方法。</p><nav class="guide-toc" aria-label="文章目录"><strong>阅读路线</strong><a href="#system-proxy">系统代理接管什么</a><a href="#tun">TUN 改变了什么</a><a href="#routing">为什么全局不等于全部</a><a href="#choose">应该用哪一种</a><a href="#switch">怎样切换和检查</a><a href="#troubleshoot">按现象排错</a><a href="#dns">DNS 还要单独看</a></nav><h2 id="system-proxy">01 系统代理:让应用按设置转交请求</h2><p>打开 Clash Verge Rev 的“系统代理”,客户端会修改操作系统的代理设置,把代理地址指向本机正在监听的端口。愿意读取并遵循这项设置的应用,就会把相应请求交给客户端处理。浏览器通常可以通过这种方式使用代理。<a href="https://www.clashverge.dev/guide/quickstart.html">官方快速入门</a></p><p>这里的关键是“应用遵循设置”。有的软件读取系统设置,有的软件使用自己的代理配置,还有的软件直接建立连接。同一台电脑上,浏览器正常、另一个应用不走代理,并不矛盾。</p><figure class="guide-diagram"><div class="diagram-label">图 1 · 系统代理依赖应用配合</div><div class="guide-flow"><div><b>应用读取设置</b><small>使用系统指定的代理</small></div><span aria-hidden="true">→</span><div><b>本机代理端口</b><small>请求进入 Mihomo</small></div><span aria-hidden="true">→</span><div><b>匹配出口</b><small>直连或代理节点</small></div></div><div class="guide-branch">不遵循系统代理的应用:仍按自己的网络设置连接,不会仅因这个开关而进入 Mihomo。</div><figcaption>这也解释了为什么“浏览器能用”不能代表电脑上每个应用都已经走代理。</figcaption></figure><p>如果应用提供 HTTP 或 SOCKS 代理选项,可以单独指向客户端的本机端口。地址通常是 <code>127.0.0.1</code>,端口应查看客户端当前设置,不要照抄别人的数字;HTTP、SOCKS 和混合端口也要对应正确。</p><p>终端工具同样需要看各自支持什么。以 Linux 上的 curl 为例,可以先用<a href="/a/m174.html#terminal">单条命令指定代理的方法</a>检查,不必为了一个工具马上接管整台电脑。</p><h2 id="tun">02 TUN:通过虚拟网卡接收流量</h2><p>TUN 会创建虚拟网络接口,并通过路由把符合接管条件的 IP 流量交给内核。应用不必先学会使用 HTTP 或 SOCKS 代理,因此它常用于系统代理无法覆盖的程序。Mihomo 可以处理通过 TUN 进入的 TCP、UDP 流量,但最终能否完成连接,还取决于配置、节点和目标服务。<a href="https://www.clashverge.dev/guide/term.html">官方名词解释</a></p><figure class="guide-diagram"><div class="diagram-label">图 2 · TUN 在网络路由这一层接管</div><div class="guide-flow"><div><b>应用发起连接</b><small>无需读取系统代理</small></div><span aria-hidden="true">→</span><div><b>系统路由 → TUN</b><small>进入虚拟网卡</small></div><span aria-hidden="true">→</span><div><b>Mihomo 处理</b><small>再决定实际出口</small></div></div><div class="guide-branch">被排除的地址、接口或其他未进入 TUN 的连接,仍可能走原来的网络路径。</div><figcaption>TUN 扩大了接管范围,但开关亮着不等于每一条连接都已被接管。</figcaption></figure><p>TUN 也有接管范围。自动路由、排除网段、IPv6 设置及其他 VPN 的路由,都可能影响实际路径。例如,把某个局域网网段排除在 TUN 之外,就是让它绕过这层接管;这与连接进入 Mihomo 后命中 <code>DIRECT</code> 规则不同。<a href="https://wiki.metacubex.one/config/inbound/tun/">Mihomo TUN 配置</a>、<a href="https://www.clashverge.dev/guide/bypass.html">代理绕过说明</a></p><p>日常使用图形客户端时,优先使用它提供的 TUN 设置。建立网卡和修改路由需要相应权限;Clash Verge Rev 的服务模式可让具有权限的后台服务启动内核,不代表必须一直以管理员身份运行整个界面。<a href="https://www.clashverge.dev/guide/term.html">服务模式说明</a></p><h2 id="routing">03 “全局”和 TUN 不是同一个维度</h2><p>把“规则”改成“全局”,改变的是进入内核后的出口选择。一个完全没有进入客Line truncated
|
||||
@@ -43,6 +43,8 @@
|
||||
|
||||
一个具体例子:浏览器和下载工具访问同一域名,浏览器连接记录里显示了节点,下载工具却没有记录。此时应优先检查下载工具的代理设置或接管方式;反复切换全局,通常没有解决前面的缺口。
|
||||
|
||||
如果流量已经进入客户端,却仍走错节点,可以继续看[规则模式、代理组与实际出口的检查方法](/a/clash-rule-global-direct.html#groups),分清应该改哪一个组。
|
||||
|
||||
<h2 id="choose">04 按应用需求选择,不必一开始全部打开</h2>
|
||||
|
||||
| 你要完成的事 | 可以先这样做 |
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# FNA_V3 文章推荐广告
|
||||
|
||||
**当前正式三张素材已更新**:用户要求补齐李响及全部相关改动后,最终compact三图、cover取景及广告标记已随[相关补齐发布](RELATED_RELEASE_2026-10-31.md)上线;HN九折配置保留。以下“仅本地/未发布”是原日期实施历史,上一批contain旧图方案已被本次正式版本替代。
|
||||
|
||||
## 当前实现
|
||||
|
||||
2026-10-31按用户新要求新增统一机场推荐表/手机卡片,本地覆盖资源正文旧福云推荐区及所有教程末尾。价格、网址、优惠码的唯一配置与验收见[统一机场推荐](AIRPORT_RECOMMENDATIONS.md)。未部署线上;下列整图广告保持原行为。
|
||||
|
||||
@@ -6,7 +6,7 @@ # 统一机场推荐模块
|
||||
|
||||
## 唯一资料入口
|
||||
|
||||
`config/airport_recommendations.php`集中维护开关、顺序、品牌名、地址、起售价/单位、解锁文案、场景说明、优惠码及折扣。初始三家与价格/优惠文案按用户截图:福云18元/月、DP-LINK.NET26元/月、hardnerd28元/月;前两家clashfreenode.com九折,HN无优惠码。该价格和营销说明为用户指定文案,不表示本次完成网络或套餐实测。
|
||||
`config/airport_recommendations.php`集中维护开关、顺序、品牌名、地址、起售价/单位、解锁文案、场景说明、优惠码及折扣。初始三家与价格/优惠文案按用户截图:福云18元/月、DP-LINK.NET26元/月、hardnerd28元/月;三家均使用clashfreenode.com九折(HN优惠由用户随后确认补齐)。该价格和营销说明为用户指定文案,不表示本次完成网络或套餐实测。
|
||||
|
||||
地址沿已登记/既有配置:FUC免翻墙入口`https://xn--123-9i9dj97q.com/`,DPL `https://dp-link.net/`,HN `https://hardnerd.net/`;未点击或访问落地页。可通过AIRPORT_FUC_URL、AIRPORT_DPL_URL、AIRPORT_HN_URL覆盖。使用独立展示配置避免本地HN广告使用hn.loc时污染公开推荐网址。未新建后台、数据库、DomainHub调用或TeleHub汇报;无新增公共服务需求,当前统一配置足够维护三个固定条目,后续后台接入另按明确需求设计。
|
||||
|
||||
@@ -33,3 +33,7 @@ ## 本地验收
|
||||
本地预览:`http://fna-v3.loc/a/fn20261021.html#airport-recommendations`;入门`/a/clash-verge-rev-windows.html#airport-recommendations`;综合`/a/mihomo-dns-leak.html`可点击文内“机场推荐”跳转。
|
||||
|
||||
2026-10-31后续免费节点详情重设计仅将freenode页推荐区移至订阅及使用说明之后,仍使用本组件/配置;苹果ID维持原位置替换、教程文末维持不变。结构与验收见[免费节点内容页](FREENODE_ARTICLE_LAYOUT.md),均仅本地。
|
||||
|
||||
## Hardnerd优惠补齐(2026-10-31)
|
||||
|
||||
用户确认hardnerd同样使用`clashfreenode.com`享9折。仅更新共享推荐配置的HN coupon/discount及对应渲染断言,所有引用页随配置/响应缓存刷新生效,无需逐篇编辑正文。不创建或修改HN服务端优惠码,不执行下单或优惠核销。Git提交、正式HEAD、恢复点和服务器验收回执见`output/hn-coupon-20261031/`。
|
||||
@@ -45,3 +45,7 @@ ## 状态与恢复
|
||||
IndexNow的结果、环境开关及服务器延时重试见[教程SEO通知](EDITORIAL_INDEXNOW.md)。通知pending只重试后处理,不再次发表正文。
|
||||
|
||||
2026-10-31编辑发布已接入[IndexNow通知与重试](EDITORIAL_INDEXNOW.md),复用发布回执effects;通知pending不表示正文未发布,禁止为通知重发正文。
|
||||
|
||||
## 图片发布目录
|
||||
|
||||
2026-10-31首篇真实上传配图时发现正式 `public/images/editorial` 缺失。用户明确批准创建该专用目录并设为nginx所有、0755;已实施并完成真实文章发布。上级public/images权限未改变。以后部署预检该目录存在且执行身份nginx可写,禁止临时以root执行文章发布来绕过。回执见[首篇周期教程](ROUTING_MODES_2026-10-31.md)。
|
||||
@@ -59,3 +59,11 @@ ## 本地验收
|
||||
2026-10-31用户反馈外层卡片圆角与其他页不一致,经浏览器核对参考教程正文/侧栏桌面与手机均4px,已移除免费节点正文卡片14px/手机10px及侧栏10px局部覆盖,沿网站共用4px圆角。仅本地。
|
||||
|
||||
2026-10-31用户再次反馈标题区留白不均,已将桌面标题/插画改为顶部对齐,标题行高1.3、说明上间距8px/行高1.6,插画112×80、概览前间距20px;手机沿其原独立尺寸和顶部对齐,不变更字号或文字。仅本地。
|
||||
|
||||
## 使用方法区重设计(2026-10-31,已发布)
|
||||
|
||||
用户在正式发布后指出“三步说明+第一次使用链接”排版怪异,本次先在本地重设计:标题精简为“使用方法”,用单个浅紫灰区域统一容纳三步及教程入口;圆形序号与步骤标题对齐,说明文字简短统一,底部以细分隔线和教程导航收尾。桌面三列,767.98px及以下纵向排列;4px圆角沿本站卡片尺度,步骤标题16px/说明14px,手机教程链接13px避免挤压。教程链接显示Windows、Android、全部教程,实际URL及对应无障碍标签保留。
|
||||
|
||||
仅调整freenode/content.blade.php及freenode-article.css,清掉已删除提示框的孤立样式。原订阅值/复制按钮、文章数据、广告、推荐模块及其他页面保持。1280桌面、390/320窄屏检查通过:三步与三条教程链接都在容器内,无横向溢出;默认视口恢复。本次为可逆展示修改,未新增测试;用户随后要求发布,已Git提交推送并更新正式站,应用888358a6,46项服务器侧检查通过。精确SHA、恢复点及最终文档提交见[使用方法区发布记录](USAGE_RELEASE_2026-10-31.md)。
|
||||
|
||||
本地预览:`http://fna-v3.loc/a/fn20261018.html#node-usage`。截图:[桌面](../../output/usage-redesign-20261031/desktop.png)、[手机](../../output/usage-redesign-20261031/mobile.png)。
|
||||
@@ -1,5 +1,7 @@
|
||||
# Hardnerd 广告正式发布 · 2026-10-30
|
||||
|
||||
当前活动随机广告已于2026-10-31更新为用户批准的compact最终版(HN为小写hardnerd),见[相关补齐发布](RELATED_RELEASE_2026-10-31.md)。下文为各次历史增量与恢复记录。
|
||||
|
||||
用户明确要求把此前Hardnerd广告放上去并发布,暂停后已恢复授权。此次只发布HN,不携带DPL/FUC广告或其他本地未提交功能。
|
||||
|
||||
## 当前实现
|
||||
|
||||
@@ -9,3 +9,9 @@ # 插画交付接收
|
||||
回退先停fna-illustration-delivery.timer和service、关闭开关;静态副本和旧配图保留。原同步/静态展示维护见[静态配图](LOCAL_ILLUSTRATIONS.md)。批次验收与具体SHA由Resource发布记录维护。
|
||||
|
||||
当前已上线,真实自动回执与既有停用图片的验收差异见[发布记录](/Users/hellcat/Documents/GemCodes/resource.loc/v2/docs/ILLUSTRATION_DELIVERY_RELEASE.md)。
|
||||
|
||||
## 2026-10-30 乔治002—011交付
|
||||
|
||||
用户明确批准发布后,通过唯一交付工具提交10张新画:002—006猫图至freenode,007—011狗图至shadowrocketids。批次`06025e43-7a07-5922-a60a-1b694398c28d`经received、awaiting_sync到completed,Resource处理1次、无错误,完成时间2026-10-30 11:09:41 UTC(北京时间19:09:41)。回执包含10项资产;completed表示FNA已核对本批静态副本及SHA并完成ACK,Resource再次确认发布、授权和图池成员。
|
||||
|
||||
私有交付目录为`storage/app/private/illustration-deliveries/20261030-george-002-011/`,含原图、完整提示词、delivery.json及receipt.json;原来源文件保留。画师只执行check、submit和status,后续由服务器自动处理,没有手工修改图池、分配旧文章或执行全量同步。本次无代码部署;已完成服务器侧自动交付验收,未做线上页面验收。
|
||||
@@ -0,0 +1,30 @@
|
||||
# 相关改动补齐发布(2026-10-31)
|
||||
|
||||
用户明确要求“李响那边的改动”“相关的没提交的都提交发布”。已精确读取“李响 - FNA_V支援”最近工作并核对同一本地目录,基于当前正式 `bd8b58a6cfde27067cfd176146bfa0ce4e860e3f` 隔离提交38个相关文件,推送分支 `codex/related-ui-ads-20261031`,正式检出应用提交 `add9ed489e5fa229d606e72e9f9065ea41cf8b43`。随后文档提交仍沿同一分支,最终HEAD见 `output/related-release-20261031/docs-release.json`;应用哈希保持不变。
|
||||
|
||||
目标仍为VPS-003 `/www/wwwroot/clashfreenode-new.com`、`https://clashfreenode.com/`,本机SSH经白色机执行。未发送跨聊天消息,未恢复test或访问HN/DPL/FUC业务后台。
|
||||
|
||||
## 本次补齐
|
||||
|
||||
- 李响最终确认的三张矮横幅:`DP-LINK.NET`字标;小写`hardnerd`、品牌大字/小标语/两行留白;福云“全球网络加速 / 五年稳定运营”。精确路径、原始尺寸及SHA见[素材清单](../assets/advertising/20261031/assets.json),原稿PNG随Git提交,六份完整原始/定点编辑提示词及来源说明一并归档。
|
||||
- 活动广告组件引用最终三图,尺寸及alt同步,广告标记保留。比例3.675:1,cover取景,福云center 40%;本次替换上一批临时使用的contain旧图展示。每次进入独立抽样、template候选、noscript回退和随机JS不变。
|
||||
- 共享广告配置合并保留生产DPL/HN/FUC启用环境开关。本地HN仍可预览hn.loc;生产环境回退为hardnerd.net,正式三家URL均已验收。未把本地硬编码enabled=true覆盖生产开关。
|
||||
- 文章与栏目模板清理已为空的侧栏广告include;免费节点新版、品牌、窄屏侧栏、综合教程去横幅/介绍及HN九折配置保持。
|
||||
- 补交原资源关注提示过滤的两项单元测试,以及相关维护入口、写作关系索引、周期教程台账、图片交付与test退役记录。
|
||||
- 已经发表的规则模式/TUN教程源稿和关联图源入Git。发布前将两篇HTML源与生产正文做SHA比对,均一致;仅补齐源码档案,没有重发API、修改正文、发布时间、文章ID或数据库图片关联。运行时editorial图片继续由文章发布机制维护。
|
||||
|
||||
## 对未提交文件的核对
|
||||
|
||||
本地主目录仍保留最初FN_B的旧Git基线,不根据它的M/??直接全量覆盖生产。对应用、配置、视图、路由、测试、公开CSS/JS与维护源进行服务器哈希比对:222个文件已与正式相同,无需重复发布。剩余差异逐项审查并归入本批或明确排除,清单在 `output/related-release-20261031/inventory.json`,最终38项文件SHA在manifest.json。
|
||||
|
||||
排除内容是私密.env及_env、node_modules/vendor、缓存与编译产物、生产自动生成标签模板、data.ms、运行时图片目录,以及未被当前页面引用的旧广告组件/迭代图片和试验字标。生产构建manifest沿现场版本,资源源码无新增打包需求,不从本地覆盖构建结果;未提交这些不等于还有未发布的活动广告。`.gitignore`差异只是同一忽略项的位置变化,无语义增量。生产未提交的生成标签模板和两个运行目录逐项保留,不以本地历史计数覆盖。
|
||||
|
||||
## 验收与恢复
|
||||
|
||||
- 本地11项测试/59断言通过,涵盖资源提示过滤、推荐配置/优惠、免费节点解析和订阅原值保护。
|
||||
- 桌面718×195.37、390视口354×96.32,三张均为3.675:1,图片自然尺寸与清单一致、无溢出,品牌/文案完整。实际文章活动广告DOM只有1张图片、图片加载成功,三个优惠码按钮保持。截图在本批输出目录ads-desktop.png、ads-mobile.png。临时预览页已删除,浏览器视口已恢复。
|
||||
- 正式149项服务器侧检查通过、0失败,覆盖首页/免费节点/苹果ID/两篇教程/两个栏目、新图引用与尺寸、随机脚本保留、三家生产跳转、HN九折、上一批UI及全部38文件哈希;三图与CSS的HTTPS完整SHA通过。
|
||||
- 189篇文章核心字段SHA不变,两篇已发表正文源SHA一致,.env及生产并行标签文件SHA不变。未执行数据库迁移、文章发布、通知、真实订阅下载或优惠核销。
|
||||
- 已清理nginx身份config/Blade/响应缓存。已完成服务器侧验收,未做线上浏览器页面验收。
|
||||
|
||||
恢复点VPS-003 `/root/backups/cfn-related-ui-ads-20261031`(0700),含原HEAD/status、Git bundle、tracked-before.patch、候选工作树及发布/验收回执;本地回执在 `output/related-release-20261031/`。没有后续发布时可检回 `bd8b58a6cfde27067cfd176146bfa0ce4e860e3f` 并清相同缓存;有后续变更时只反向撤销本批增量,提交推送后再更新。旧广告图仍在Git,回退不用恢复数据库、删除用户图片或关闭其他业务站。
|
||||
@@ -132,3 +132,12 @@ ## 文章点赞增量发布(2026-10-29)
|
||||
## 静态配图副本增量发布(2026-10-30)
|
||||
|
||||
功能提交`ce27dbdd1eb206a9b7e7ac9b5a1c77778ed75e03`已推送并部署test和正式,基于最新正式f315215保留年度点赞及并行生成模板;未发布广告。Resource保留素材/图池/分配,FNA保存按SHA去重的公开副本,Nginx直接提供。37份文件覆盖正式176篇、test174篇;35项/277断言自动测试、test283项及正式246项服务器检查均通过。正文/原始字段和年度点赞参数摘要不变,未新增后台任务或Resource权限。机制、恢复点和退役边界见[静态配图维护](LOCAL_ILLUSTRATIONS.md),逐项回执见[验收JSON](STATIC_ILLUSTRATIONS_RELEASE_2026-10-30.json)。已完成服务器侧验收,未做线上页面验收。
|
||||
|
||||
## test退役(2026-10-30)
|
||||
|
||||
用户明确要求正式切换后取消test,已撤销test DNS及测试应用/资源公开入口、停用专属证书续期;保留410拒绝旧DNS缓存请求,正式站不变。测试数据仅保留离线恢复用途,详情与验证见[test下线记录](TEST_RETIREMENT_2026-10-30.md)。此前“test继续在线”均为历史状态。
|
||||
|
||||
|
||||
## Resource独立后续管理升级(2026-10-30)
|
||||
|
||||
Resource图片V2已在0d9e71a图池基线上独立发布ATOM管理增量,当前运行SHA以[Resource管理正式发布](/Users/hellcat/Documents/GemCodes/resource.loc/v2/docs/MANAGEMENT.md#正式发布与服务器验收2026-10-30)为准;本页0d9e71a是FNA正式切换时的历史基线,不能据其覆盖当前资源服务。旧图片、37图池素材/引用及FNA消费者凭据保持,本次未改FNA代码/数据库/静态副本。
|
||||
@@ -0,0 +1,173 @@
|
||||
{
|
||||
"release_id": "daabedf9-a81c-49ca-995b-7b6832dd2254",
|
||||
"published_at": "2026-10-31T06:58:28+00:00",
|
||||
"phase": "complete",
|
||||
"receipt": {
|
||||
"publication_id": "c7f9be21-3914-43f1-b7e5-9e7b49ef224d",
|
||||
"status": "published",
|
||||
"articles": [
|
||||
{
|
||||
"content_key": "clash-routing-modes",
|
||||
"article_id": 382,
|
||||
"revision": 1,
|
||||
"content_changed": true,
|
||||
"url": "https://clashfreenode.com/a/clash-rule-global-direct.html"
|
||||
},
|
||||
{
|
||||
"content_key": "system-proxy-vs-tun",
|
||||
"article_id": 376,
|
||||
"revision": 2,
|
||||
"content_changed": true,
|
||||
"url": "https://clashfreenode.com/a/system-proxy-vs-tun.html"
|
||||
}
|
||||
],
|
||||
"effects": {
|
||||
"indexnow": {
|
||||
"status": "done",
|
||||
"attempts": 1,
|
||||
"http_status": 200,
|
||||
"urls": [
|
||||
"https://clashfreenode.com/a/clash-rule-global-direct.html",
|
||||
"https://clashfreenode.com/a/system-proxy-vs-tun.html"
|
||||
],
|
||||
"submitted_at": "2026-10-31T06:58:29+00:00",
|
||||
"result": "received"
|
||||
},
|
||||
"cache": {
|
||||
"status": "done"
|
||||
},
|
||||
"search": {
|
||||
"status": "done",
|
||||
"method": "meilisearch",
|
||||
"index": "cfn_articles_v3",
|
||||
"documents": 2
|
||||
},
|
||||
"sitemap": {
|
||||
"status": "done",
|
||||
"method": "database-driven"
|
||||
}
|
||||
}
|
||||
},
|
||||
"readback": [
|
||||
{
|
||||
"content_key": "clash-routing-modes",
|
||||
"article_id": 382,
|
||||
"revision_matches": true,
|
||||
"content_matches": true,
|
||||
"body_sha256": "b9986ade5893115611f8a02070f5e98ba2fb8b7d9a100dff39e11ff60876c5c2",
|
||||
"like_growth": {
|
||||
"seven_day_remaining": 29,
|
||||
"yearly": 50,
|
||||
"one_year_target": 241,
|
||||
"one_year_added": 0,
|
||||
"one_year_started_at": "2026-10-31 06:58:28"
|
||||
}
|
||||
},
|
||||
{
|
||||
"content_key": "system-proxy-vs-tun",
|
||||
"article_id": 376,
|
||||
"revision_matches": true,
|
||||
"content_matches": true,
|
||||
"body_sha256": "255db797e5e1403ee779e960e2129558e160badf0fe53f1822250b8d45e0ddb3",
|
||||
"like_growth": {
|
||||
"seven_day_remaining": 0,
|
||||
"yearly": 50,
|
||||
"one_year_target": 106,
|
||||
"one_year_added": 0,
|
||||
"one_year_started_at": "2026-10-29 13:30:35"
|
||||
}
|
||||
}
|
||||
],
|
||||
"display_published_at_utc": "2026-10-31 02:10:28",
|
||||
"http": {
|
||||
"new_page": 200,
|
||||
"chapter_anchors": [
|
||||
"custom",
|
||||
"groups",
|
||||
"modes",
|
||||
"order",
|
||||
"troubleshoot",
|
||||
"verify"
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"path": "/images/editorial/417b203a4af30200b6ed3b37d0b0e823a9b47db49e2d743b1110b35329cc5de8.png",
|
||||
"status": 200,
|
||||
"sha256_matches": true
|
||||
},
|
||||
{
|
||||
"path": "/images/editorial/98a43bdd771dd4c6c5ec6b87bb5f0ebf679fa2b228dddbb764adecf50b0374e9.png",
|
||||
"status": 200,
|
||||
"sha256_matches": true
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"target": "/a/clash-verge-rev-windows.html#enable",
|
||||
"status": 200,
|
||||
"anchor_exists": true
|
||||
},
|
||||
{
|
||||
"target": "/a/m173.html#enable",
|
||||
"status": 200,
|
||||
"anchor_exists": true
|
||||
},
|
||||
{
|
||||
"target": "/a/mihomo-dns-leak.html#dns-2",
|
||||
"status": 200,
|
||||
"anchor_exists": true
|
||||
},
|
||||
{
|
||||
"target": "/a/system-proxy-vs-tun.html#routing",
|
||||
"status": 200,
|
||||
"anchor_exists": true
|
||||
},
|
||||
{
|
||||
"target": "/a/system-proxy-vs-tun.html#troubleshoot",
|
||||
"status": 200,
|
||||
"anchor_exists": true
|
||||
}
|
||||
],
|
||||
"incoming_link": true,
|
||||
"directory": {
|
||||
"owner": "nginx",
|
||||
"mode": "0o755"
|
||||
},
|
||||
"head": "77f9b09c58b46ef2bbe0882ec89194bf25aa82cd"
|
||||
},
|
||||
"local_browser": {
|
||||
"checks": [
|
||||
{
|
||||
"width": 1360,
|
||||
"scroll": 1360,
|
||||
"headings": [
|
||||
"01 三个模式,改变的是出口选择",
|
||||
"02 换了节点没效果,可能换错了组",
|
||||
"03 先看顺序,再看规则写得对不对",
|
||||
"04 在 Verge Rev 里给一个网站添加规则",
|
||||
"05 改完以后,检查一条新连接",
|
||||
"06 几种常见现象,对应查哪里"
|
||||
],
|
||||
"brokenImages": [],
|
||||
"tables": 2,
|
||||
"images": 2
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"scroll": 390,
|
||||
"headings": [
|
||||
"01 三个模式,改变的是出口选择",
|
||||
"02 换了节点没效果,可能换错了组",
|
||||
"03 先看顺序,再看规则写得对不对",
|
||||
"04 在 Verge Rev 里给一个网站添加规则",
|
||||
"05 改完以后,检查一条新连接",
|
||||
"06 几种常见现象,对应查哪里"
|
||||
],
|
||||
"brokenImages": [],
|
||||
"tables": 2,
|
||||
"images": 2
|
||||
}
|
||||
],
|
||||
"blockedOrigins": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
# 规则、全局与直连教程 · 2026-10-31
|
||||
|
||||
## 本次授权与范围
|
||||
|
||||
用户要求“现在就来一篇,当检测触发了”。本次作为提前的人工触发登记到2026-10-26周的 `2026-10-26-manual-1` 槽位,不改变2026-11-02起的每周三篇计划。本篇已按真实发布回执计入当周额度。
|
||||
|
||||
新文内容键 `clash-routing-modes`,路径 `/a/clash-rule-global-direct.html`,栏目综合教程。两张解释图、一张沿用现有样式的封面。系统代理/TUN文章只在 `#choose` 前补一个新文 `#groups` 入口,其余内容不改。新文链接Windows入门 `#enable`、Mac入门 `#enable`、TUN `#routing` / `#troubleshoot`、DNS `#dns-2`。
|
||||
|
||||
## 资料与质量检查
|
||||
|
||||
2026-10-31阅读 Mihomo 官方运行模式、路由规则、手动/自动代理组文档,以及 Clash Verge Rev 名词解释、自定义规则文档。准确链接保留在正文。原创示例使用example.com,不把配置片段写成完整可直接导入的订阅。未开展客户端真机联网实测,此边界只留维护记录。
|
||||
|
||||
本地实际模板桌面1360和手机390检查:均无横向溢出、2张正文图无破图、2张表格正常渲染、6个章节锚点存在。浏览器请求先按本地origin白名单拦截;没有本机线上页面访问。初次检查发现本地Vite未运行,启动原5187开发服务后复检通过,未改样式。正式签名预览由VPS-003内部Kernel渲染,未在本机打开其线上资源。
|
||||
|
||||
## 发布与恢复
|
||||
|
||||
- release_id:`daabedf9-a81c-49ca-995b-7b6832dd2254`
|
||||
- publication_request_id:`c7f9be21-3914-43f1-b7e5-9e7b49ef224d`
|
||||
- draft hash:`6ebc848487be507cd71e61016bf1232f1fc7c28b4042f019ff63654c8e29c486`
|
||||
- 正式冻结默认值:i7like 29,i365like 50,一次性年度目标241;显示偏移17280秒。旧文设置不变。
|
||||
- 本地已通过API发表:新文ID366/版本1,TUN ID365/版本2;本地IndexNow禁用并返回skipped。
|
||||
- 正式首次publish失败;原ID status确认尚无发表回执,草稿仍draft。VPS-003错误为ContentRenderer.php:83 mkdir Permission denied;公开图片目录 `public/images/editorial` 不存在,上级root:root0755,API运行身份nginx无法创建。私有资产上传目录nginx:nginx0700正常。
|
||||
- 创建该专用目录并设nginx:nginx0755的操作被自动审批拒绝(持久生产权限变更);用户随后明确批准“允许,仅创建这个专用目录并继续发布”,已按该范围创建并验证;其他目录所有权与权限未改。沿原release恢复,未另起发布请求。
|
||||
- 私有工作文件:本机 `/private/tmp/fna-modes-20261031/`;服务器原release台账位于 `storage/app/private/editorial-releases/daabedf9-a81c-49ca-995b-7b6832dd2254.json`。
|
||||
|
||||
## 最终验收
|
||||
|
||||
正式发布完成:2026-10-31 14:58:28北京时间(服务器回执06:58:28 UTC),新文ID382/版本1,TUN ID376/版本2。展示时间比实际时间提前17280秒(4小时48分);点赞29/50/241已回读,旧文106年度目标及起点保留。新文全文与冻结版、两文版本、三张上传图片文件SHA由发布封装回读一致。
|
||||
|
||||
IndexNow由VPS-003在14:58:29北京时间提交新文和旧文更新两条URL,HTTP200、attempts1;白色机仅转发SSH。缓存、Meilisearch与sitemap均done,phase complete。此结果表示通知接收,不表示搜索引擎已收录。
|
||||
|
||||
服务器侧真实HTTP:新文200,2张正文图200且SHA一致;5条正文关联链接200且锚点存在,TUN旧文入向链接存在,6个章节锚点齐全。目录nginx所有/0755回读通过。已完成服务器侧验收,未做线上页面验收。本机浏览器只验收本地实际模板。
|
||||
|
||||
周期台账已用原release回执record到2026-10-26-manual-1,实际发表时间用于计数;2026-11-02当周三个计划未改。正文、图源、PNG、渲染HTML、关系索引同步保存,机器可读回执见[发布证据](ROUTING_MODES_2026-10-31.json)。
|
||||
|
||||
如需回退,旧文可从API版本1创建回退草稿,新文保留同URL通过API修订;不直接SQL修改,也不为撤回图片删除共享内容寻址资源。专用图片目录是API后续发文必需部署项,新增部署前应检查该目录归属与nginx写入能力。
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"retired_at": "2026-10-30T04:36:51Z",
|
||||
"checks": [
|
||||
{
|
||||
"url": "http://test.clashfreenode.com/",
|
||||
"status": 410
|
||||
},
|
||||
{
|
||||
"url": "https://test.clashfreenode.com/",
|
||||
"status": 410
|
||||
},
|
||||
{
|
||||
"url": "https://test.clashfreenode.com/resource-v2/",
|
||||
"status": 410
|
||||
},
|
||||
{
|
||||
"url": "https://test.clashfreenode.com/images/illustrations/0000000000000000000000000000000000000000000000000000000000000000.png",
|
||||
"status": 410
|
||||
}
|
||||
],
|
||||
"production_http": 200,
|
||||
"production_nginx_unchanged": true,
|
||||
"test_renewal_disabled": true,
|
||||
"test_data_retained_offline": true,
|
||||
"dns": {
|
||||
"cloudflare_test_A_removed": true,
|
||||
"authoritative": [
|
||||
{
|
||||
"ns": "bradley.ns.cloudflare.com.",
|
||||
"status": "NXDOMAIN"
|
||||
},
|
||||
{
|
||||
"ns": "jewel.ns.cloudflare.com.",
|
||||
"status": "NXDOMAIN"
|
||||
}
|
||||
],
|
||||
"prior_record": {
|
||||
"type": "A",
|
||||
"name": "test.clashfreenode.com",
|
||||
"content": "45.153.247.44",
|
||||
"proxied": false,
|
||||
"ttl": "auto"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
# test 预览下线(2026-10-30)
|
||||
|
||||
用户明确要求切正式后取消test。当前唯一公开业务站为https://clashfreenode.com/;test.clashfreenode.com已撤销Cloudflare单条A记录(原45.153.247.44、DNS-only、自动TTL)。主域名、www、邮件等其余10条记录保留。DNS界面证据见[截图](TEST_DNS_RETIRED_2026-10-30.png)。
|
||||
|
||||
经白色机SSH在VPS-003下线test网页及/resource-v2/入口,原虚拟主机不再指向测试代码或PHP;保留同名HTTP/HTTPS 410拒绝规则,避免尚有DNS缓存的客户端落入其他虚拟主机。关闭仅test的Certbot续期配置,现有证书只供缓存客户端返回410;未撤销或修改共享证书、PHP-FPM、Resource生产服务。Nginx配置验证/reload通过,正式站HTTP200且正式Nginx配置摘要未变。
|
||||
|
||||
测试代码、独立MySQL库和测试Resource SQLite/资产保留为离线恢复资料,不再提供公开访问;没有执行数据库删除、素材删除或撤销正式凭据。后续不得把test作为仍在线验收入口,也不自动重新开放。
|
||||
|
||||
VPS-003恢复点:`/root/backups/cfn-test-retirement-20261030/`,包含原test Nginx、原续期配置及退役回执。恢复须重新授权:恢复原test虚拟主机和续期配置,nginx -t后reload,再按原值重建精确test A记录并验证。不得用旧部署脚本擅自恢复。
|
||||
|
||||
已完成服务器侧验收,未做线上页面验收。
|
||||
@@ -29,3 +29,7 @@ ## 恢复
|
||||
没有后续生产变更时,可经白色机将正式目录检回发布前 `a7adfac04108c68b58bd02c550fe98fd80b2feeb`,再以nginx身份清理 `view:clear` 和 `responsecache:clear` 并做服务器冒烟核验。有后续发布时,在其当前HEAD上只撤销本次应用增量,提交推送后再切换,不覆盖后续功能或并行未提交文件。保留原PNG、图片资产及Resource关联。
|
||||
|
||||
后续文档同步提交仅更新维护记录;应用差异、远端分支SHA与正式最终HEAD由同目录docs-release.json核实。
|
||||
|
||||
## 同日后续补齐
|
||||
|
||||
用户随后明确要求发布李响及全部相关未提交内容;compact最终三图及cover样式现已正式替代本批的临时旧图contain方案。相关源稿/维护文件也已补交,见[相关补齐发布](RELATED_RELEASE_2026-10-31.md)。本页“新图未包含”仅说明7d564df7这一个历史批次,不能用于判断当前正式广告。
|
||||
@@ -0,0 +1,19 @@
|
||||
# 使用方法区发布(2026-10-31)
|
||||
|
||||
用户确认本地重设计后要求发布。已经白色机SSH在VPS-003 `/www/wwwroot/clashfreenode-new.com` 完成Git提交、推送及正式检出。应用提交 `888358a6b60b3da3fddc52fc8980a81bd83d4cc7`,发布前 `08ee2275fb3ff60b8db327f59af9bcd65284d761`,分支 `codex/usage-panel-20261031`。后续仅文档提交的最终HEAD见 `output/usage-release-20261031/docs-release.json`。
|
||||
|
||||
只发布两个应用文件:`resources/views/pages/articles/freenode/content.blade.php` 和 `public/css/freenode-article.css`。将原散列的三步说明改为单个浅色区域,圆形序号、标题/说明对齐、教程入口归并在底部分隔线下;标题精简为“使用方法”,桌面三列、手机纵向。教程URL与订阅区保留,清理已删除提示框的孤立CSS。实现与截图沿[内容页维护](FREENODE_ARTICLE_LAYOUT.md#使用方法区重设计2026-10-31已发布)。
|
||||
|
||||
此前三张compact广告、品牌/移动侧栏、综合教程列表和HN clashfreenode.com九折配置均保留。没有修改数据库、文章发布API、业务服务、Nginx、调度或前端构建包;不恢复test。生产.env、未提交的生成标签模板和运行目录保留。
|
||||
|
||||
## 验收
|
||||
|
||||
本地1280桌面、390/320窄屏检查已通过,三步及三条教程链接都在容器内、无横向溢出,默认视口恢复。截图在 `output/usage-redesign-20261031/`。此次为可逆展示调整,不新增镜像实现的测试。
|
||||
|
||||
正式46项服务器侧检查通过、0失败:覆盖首页、最新三格式及最早两格式免费节点、苹果ID、TUN教程;新面板仅出现在首页/免费节点详情,标题/三步/教程导航及原链接正确。各页title/canonical/robots/description及全部data-clipboard-text摘要与发布前完全一致,三个广告候选和三家优惠码保留。两个应用文件部署SHA一致,实际版本URL的CSS HTTPS完整SHA通过,.env和生产并行标签文件SHA不变。已以nginx身份清理Blade及响应缓存。
|
||||
|
||||
已完成服务器侧验收,未做线上浏览器页面验收,未打开订阅、TG/GitHub或服务商落地页。回执为 `output/usage-release-20261031/release.json` 和 verification.json;发布前精确diff在同目录diffs/。
|
||||
|
||||
## 恢复
|
||||
|
||||
VPS-003恢复点 `/root/backups/cfn-usage-20261031`(0700),含原HEAD/status、Git bundle、tracked-before.patch、仅含SEO/复制摘要的HTTP基线及发布验收回执。没有后续变更时可检回发布前08ee2275并以nginx清理view/responsecache;有后续发布时,在当前HEAD上仅反向撤销本次模板/CSS增量,Git推送后再更新。不回灌数据库或覆盖并行文件。
|
||||
@@ -1,6 +1,6 @@
|
||||
# 综合教程周期写作
|
||||
|
||||
2026-10-31用户最终规则:每周三篇,每天北京时间15:00检查;文章展示时间随机往前0~6小时,精确到秒。原每周两篇、早晚两个窗口的规则已替换。Codex heartbeat `fna`,名称“FNA 综合教程|每周三篇”,ACTIVE,绑定本聊天,自2026-11-02当周开始。调度已修改,首轮实际写作尚未执行。
|
||||
2026-10-31用户最终规则:每周三篇,每天北京时间15:00检查;文章展示时间随机往前0~6小时,精确到秒。原每周两篇、早晚两个窗口的规则已替换。Codex heartbeat `fna`,名称“FNA 综合教程|每周三篇”,ACTIVE,绑定本聊天,自2026-11-02当周开始。调度已修改;2026-10-31用户提前手动触发一篇已正式发布并计入当周台账,2026-11-02当周的三次计划保持不变。详见[首篇记录](ROUTING_MODES_2026-10-31.md)。
|
||||
|
||||
## 执行入口
|
||||
|
||||
|
||||
@@ -4,10 +4,24 @@ .fn-overview{border:1px solid var(--fn-line);border-radius:10px;display:flex;pad
|
||||
.fn-article-nav{display:flex;gap:8px;padding-bottom:18px;border-bottom:1px solid var(--fn-line);margin-bottom:22px}.fn-article-nav a{font-size:14px;color:#8c8794;background:#f7f6f9;padding:7px 14px;border-radius:6px;line-height:1.5;text-decoration:none}.fn-article-nav a:first-child{background:#ede6f1;color:#785282}.fn-article-nav a span{margin-left:20px}.fn-article-nav a:hover{color:#6e4d78;background:#eee7f2}
|
||||
.free-node-page .post-content{font-size:16px;line-height:1.95}.fn-subscriptions,.fn-usage{scroll-margin-top:92px}.fn-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:14px}.free-node-page .post-content .fn-section-heading h2{font-size:22.72px;line-height:1.55;margin:0;padding:0;border:0;color:#38343e}.fn-subscription-list{display:grid;grid-template-columns:minmax(0,1fr);gap:11px}.fn-subscription{min-width:0;border:1px solid #e8e9ee;border-radius:10px;padding:17px 17px 14px;background:white}.fn-subscription__top{display:flex;gap:11px;align-items:center;margin-bottom:9px}.fn-subscription__name{flex:1;min-width:0}.free-node-page .post-content .fn-subscription__name h3{font-size:18.08px;line-height:1.5;color:#40404a;margin:0;font-weight:600}
|
||||
.fn-subscription__address{display:flex;align-items:center;gap:12px;background:#f7f7fa;border:1px solid #f0eff4;padding:8px 9px 8px 11px;border-radius:6px}.free-node-page .post-content .fn-subscription__address code{color:#777180;background:none;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;padding:0;display:block;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fn-copy{border:0;border-radius:5px;background:#86618f;color:white;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:14px;line-height:1.5;white-space:nowrap;flex:none;cursor:pointer;min-height:40px}.fn-copy:hover{background:#765280}.fn-copy:focus-visible,.fn-article-nav a:focus-visible{outline:2px solid #9572b0;outline-offset:3px}
|
||||
.free-node-page .post-content .fn-subscription-note{font-size:14px;line-height:1.8;color:#7d7686;margin-top:13px}.free-node-page .post-content .fn-subscription-note p{margin:0!important}.fn-subscription-note span{color:inherit!important}.fn-subscription-note br{display:none}.fn-usage{margin:32px 0 0;padding-top:27px;border-top:1px solid var(--fn-line)}.fn-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none!important;padding:0!important;margin:0 0 18px!important;gap:15px}.fn-steps>li{display:flex;gap:9px;padding:0!important;margin:0!important}.fn-steps>li>span{font-size:14px;font-weight:600;color:#bca5c5;line-height:1.8}.fn-steps strong{font-size:16px;font-weight:500;color:#6a6271}.free-node-page .post-content .fn-steps p{font-size:14px;color:#807788;margin:3px 0 0;line-height:1.8}
|
||||
.fn-original-help{background:#faf9fb;border:1px solid #efecf2;border-radius:8px;padding:13px 16px;color:#786c84;font-size:12px;line-height:1.9}.free-node-page .post-content .fn-original-help p{font-size:12px;line-height:1.9;margin:0 0 7px}.free-node-page .post-content .fn-original-help p:last-child{margin-bottom:0}.fn-original-help p:empty,.fn-original-help br{display:none}.fn-tutorial-links{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:13px;font-size:14px;color:#b0a4b5}.fn-tutorial-links a{color:#8a6b95;text-decoration:none!important}.fn-community{margin:24px 0 0;border-top:1px solid var(--fn-line);padding-top:18px;font-size:14px;color:#7f7386;display:flex;align-items:center;justify-content:space-between;gap:10px}.fn-community>div{display:flex;gap:14px}.fn-community a{color:#8c7996;text-decoration:none!important}.fn-empty-note{font-size:14px!important;color:#a58a62!important;padding:9px 12px;background:#fdf9f1;border-radius:6px;margin:0 0 13px!important}.fn-empty-note a{color:inherit;text-decoration:underline}.fn-extra-intro{font-size:16px}.free-node-page .post-content>.airport-recommendations{border-top:1px solid var(--fn-line);padding-top:25px;margin-top:28px}.free-node-page .post-tags{border-top:1px solid var(--fn-line);padding-top:18px}.free-node-page .post-actions{margin-bottom:0!important}
|
||||
.free-node-page .post-content .fn-subscription-note{font-size:14px;line-height:1.8;color:#7d7686;margin-top:13px}.free-node-page .post-content .fn-subscription-note p{margin:0!important}.fn-subscription-note span{color:inherit!important}.fn-subscription-note br{display:none}/* One quiet panel groups the steps and their tutorial links. */
|
||||
.fn-usage{margin-top:28px;padding-top:24px;border-top:1px solid var(--fn-line)}
|
||||
.fn-usage__body{background:#faf9fc;border:1px solid #ece9f0;border-radius:4px;padding:20px}
|
||||
.fn-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none!important;padding:0!important;margin:0!important;gap:20px}
|
||||
.fn-steps>li{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:0!important;margin:0!important}
|
||||
.fn-steps__number{display:flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;background:#eee7f2;color:#795884;border-radius:50%;font-size:12px;font-weight:600;line-height:1}
|
||||
.fn-steps>li>div{min-width:0;padding-top:1px}
|
||||
.fn-steps strong{display:block;font-size:16px;font-weight:600;line-height:24px;color:#4d4655}
|
||||
.free-node-page .post-content .fn-steps p{font-size:14px;line-height:1.8;color:#82798c;margin:5px 0 0!important}
|
||||
.fn-tutorial-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid #eae6ee;font-size:14px;line-height:1.8}
|
||||
.fn-tutorial-links__label{color:#8b8294}
|
||||
.fn-tutorial-links__items{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px}
|
||||
.fn-tutorial-links a{color:#795884;text-decoration:none!important;white-space:nowrap}
|
||||
.fn-tutorial-links a:hover{text-decoration:underline!important;text-underline-offset:3px}
|
||||
.fn-tutorial-links a:focus-visible{outline:2px solid #9572b0;outline-offset:4px;border-radius:2px}
|
||||
.fn-community{margin:24px 0 0;border-top:1px solid var(--fn-line);padding-top:18px;font-size:14px;color:#7f7386;display:flex;align-items:center;justify-content:space-between;gap:10px}.fn-community>div{display:flex;gap:14px}.fn-community a{color:#8c7996;text-decoration:none!important}.fn-empty-note{font-size:14px!important;color:#a58a62!important;padding:9px 12px;background:#fdf9f1;border-radius:6px;margin:0 0 13px!important}.fn-empty-note a{color:inherit;text-decoration:underline}.fn-extra-intro{font-size:16px}.free-node-page .post-content>.airport-recommendations{border-top:1px solid var(--fn-line);padding-top:25px;margin-top:28px}.free-node-page .post-tags{border-top:1px solid var(--fn-line);padding-top:18px}.free-node-page .post-actions{margin-bottom:0!important}
|
||||
@media(min-width:992px){.free-node-page .sidebar{top:0}}
|
||||
@media(max-width:767.98px){.free-node-page .post>.card-body{padding:22px}.fn-header{gap:12px;align-items:flex-start;margin-bottom:16px}.fn-header__art{width:68px;height:76px;object-fit:cover;border-radius:8px}.free-node-page .fn-header h1{font-size:26px;line-height:1.35;letter-spacing:-.3px}.fn-header__lead{font-size:14px;line-height:1.7;margin-top:6px}.fn-overview{flex-wrap:wrap;padding:15px;gap:15px}.fn-metric{padding-right:17px}.fn-metric strong{font-size:22px}.fn-overview__regions{flex-basis:100%;border-top:1px solid #ebe6ef;padding-top:10px}.fn-overview__regions>span{margin-bottom:4px}.fn-article-nav{gap:6px;padding-bottom:20px;margin-bottom:23px}.fn-article-nav a{padding:8px 12px;font-size:14px}.fn-article-nav a span{margin-left:7px}.free-node-page .post-content .fn-section-heading h2{font-size:19.5px}.fn-subscription{padding:15px 13px 12px}.fn-subscription__top{gap:9px}.free-node-page .post-content .fn-subscription__name h3{font-size:17px}.fn-subscription__address{gap:8px;padding:7px}.fn-copy{font-size:14px;padding:8px 10px}.fn-copy svg{display:none}.fn-steps{grid-template-columns:1fr;gap:12px}.fn-steps>li>span{width:22px}.free-node-page .post-content .fn-steps p{margin-top:0}.fn-community{align-items:flex-start;flex-direction:column;gap:7px}.fn-tutorial-links{gap:8px 14px}.fn-original-help{padding:12px}.fn-usage{margin-top:26px;padding-top:22px}}
|
||||
@media(max-width:767.98px){.free-node-page .post>.card-body{padding:22px}.fn-header{gap:12px;align-items:flex-start;margin-bottom:16px}.fn-header__art{width:68px;height:76px;object-fit:cover;border-radius:8px}.free-node-page .fn-header h1{font-size:26px;line-height:1.35;letter-spacing:-.3px}.fn-header__lead{font-size:14px;line-height:1.7;margin-top:6px}.fn-overview{flex-wrap:wrap;padding:15px;gap:15px}.fn-metric{padding-right:17px}.fn-metric strong{font-size:22px}.fn-overview__regions{flex-basis:100%;border-top:1px solid #ebe6ef;padding-top:10px}.fn-overview__regions>span{margin-bottom:4px}.fn-article-nav{gap:6px;padding-bottom:20px;margin-bottom:23px}.fn-article-nav a{padding:8px 12px;font-size:14px}.fn-article-nav a span{margin-left:7px}.free-node-page .post-content .fn-section-heading h2{font-size:19.5px}.fn-subscription{padding:15px 13px 12px}.fn-subscription__top{gap:9px}.free-node-page .post-content .fn-subscription__name h3{font-size:17px}.fn-subscription__address{gap:8px;padding:7px}.fn-copy{font-size:14px;padding:8px 10px}.fn-copy svg{display:none}.fn-steps{grid-template-columns:1fr;gap:18px}.fn-usage__body{padding:18px}.fn-tutorial-links{align-items:flex-start;flex-direction:column;gap:7px}.fn-tutorial-links__items{display:grid;grid-template-columns:auto auto auto;gap:8px 20px;font-size:13px}.fn-community{align-items:flex-start;flex-direction:column;gap:7px}.fn-usage{margin-top:26px;padding-top:22px}}
|
||||
@media(prefers-reduced-motion:no-preference){html:has(.free-node-page){scroll-behavior:smooth}}
|
||||
|
||||
.free-node-page .post-content .fn-subscription h3::before{display:none}
|
||||
@@ -23,7 +37,6 @@ .free-node-page .airport-coupon__copy,.free-node-page .airport-price>span{font-s
|
||||
.free-node-page .post-content p.airport-recommendations__note{font-size:12px}
|
||||
@media(max-width:600px){
|
||||
.free-node-page .post-content{font-size:15px;line-height:1.95}
|
||||
.free-node-page .post-content .fn-original-help p,.free-node-page .fn-original-help{font-size:12px;line-height:1.9}
|
||||
.free-node-page .fn-extra-intro{font-size:15px;line-height:1.95}
|
||||
.free-node-page .post-content .fn-subscription__address code{font-size:11px}
|
||||
.free-node-page .post-content .airport-recommendations__heading h2{font-size:19.5px}
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
.random-article-ad { position: relative; min-width: 0; aspect-ratio: 3.675; margin: 20px 0; overflow: hidden; border-radius: 12px; background: #181b1e; }
|
||||
.random-article-ad[hidden] { display: none !important; }
|
||||
.random-article-ad > a { display: block; position: absolute; inset: 0; }
|
||||
.random-article-ad img { display: block; width: 100%; height: 100%; object-fit: contain; }
|
||||
.random-article-ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
.random-article-ad > a:focus-visible { outline: 3px solid #8ab4ff; outline-offset: -4px; }
|
||||
|
||||
.random-article-ad[data-ad-selected="dpl"] { background: #0a0f1a; }
|
||||
.random-article-ad[data-ad-selected="fuc"] { background: #f8f8fc; }
|
||||
|
||||
.random-article-ad__disclosure { position: absolute; z-index: 1; top: 8px; right: 12px; font-size: 9px; line-height: 1; color: #a9acb8; pointer-events: none; }
|
||||
.random-article-ad[data-ad-selected="fuc"] img { object-position: center 40%; }
|
||||
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
@@ -1,8 +1,8 @@
|
||||
@php
|
||||
$adChoices = collect([
|
||||
['key' => 'dpl', 'file' => 'dpl-ad-site-style-20261028.png', 'width' => 1962, 'height' => 801, 'alt' => 'DPL:畅连全球网络。日常访问、远程办公、在线娱乐,查看套餐。'],
|
||||
['key' => 'hn', 'file' => 'hn-ad-refined-20261031.png', 'width' => 1964, 'height' => 801, 'alt' => 'Hardnerd:硬核架构,品质专线,全球网络畅通无阻。'],
|
||||
['key' => 'fuc', 'file' => 'fuc-ad-site-style-20261028.png', 'width' => 1962, 'height' => 801, 'alt' => '福云:全球网络中继服务。随时随处,尽情使用。了解福云。'],
|
||||
['key' => 'dpl', 'file' => 'dpl-ad-compact-wordmark-20261031.png', 'width' => 2169, 'height' => 725, 'alt' => 'DP-LINK.NET:畅连全球网络。日常访问、远程办公、在线娱乐,查看套餐。'],
|
||||
['key' => 'hn', 'file' => 'hn-ad-compact-lowercase-20261031.png', 'width' => 2021, 'height' => 778, 'alt' => 'hardnerd:硬核架构,品质专线,全球网络畅通无阻。'],
|
||||
['key' => 'fuc', 'file' => 'fuc-ad-compact-five-years-20261031.png', 'width' => 2141, 'height' => 734, 'alt' => '福云:全球网络加速。五年稳定运营。开始使用。'],
|
||||
])->filter(fn ($ad) => config('advertising.'.$ad['key'].'.enabled')
|
||||
&& config('advertising.'.$ad['key'].'.url')
|
||||
&& is_file(public_path('images/ads/'.$ad['file'])))->values();
|
||||
@@ -17,6 +17,7 @@
|
||||
@foreach ($adChoices as $ad)
|
||||
<template data-ad-choice="{{ $ad['key'] }}">
|
||||
<a href="{{ config('advertising.'.$ad['key'].'.url') }}" target="_blank" rel="sponsored noopener noreferrer" aria-label="广告:{{ $ad['alt'] }}(新窗口打开)">
|
||||
<span class="random-article-ad__disclosure" aria-hidden="true">广告</span>
|
||||
<img src="/images/ads/{{ $ad['file'] }}?v={{ filemtime(public_path('images/ads/'.$ad['file'])) }}" alt="{{ $ad['alt'] }}" width="{{ $ad['width'] }}" height="{{ $ad['height'] }}" decoding="async">
|
||||
</a>
|
||||
</template>
|
||||
@@ -26,6 +27,7 @@
|
||||
@php($ad = $adChoices->first())
|
||||
<aside class="random-article-ad" aria-label="网络服务广告">
|
||||
<a href="{{ config('advertising.'.$ad['key'].'.url') }}" target="_blank" rel="sponsored noopener noreferrer">
|
||||
<span class="random-article-ad__disclosure" aria-hidden="true">广告</span>
|
||||
<img src="/images/ads/{{ $ad['file'] }}?v={{ filemtime(public_path('images/ads/'.$ad['file'])) }}" alt="{{ $ad['alt'] }}" width="{{ $ad['width'] }}" height="{{ $ad['height'] }}">
|
||||
</a>
|
||||
</aside>
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
<div class="sidebar col-lg-4 d-none d-lg-block ms-lg-auto">
|
||||
@include('components.order-likes')
|
||||
<!-- @include('components.generated-tags-cloud') -->
|
||||
@include('components.banners')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -142,7 +142,6 @@ class="post-like-button btn btn-light btn-w-md btn-rounded me-2"
|
||||
@include('components.order-likes')
|
||||
@endunless
|
||||
<!-- @include('components.generated-tags-cloud') -->
|
||||
@include('components.banners')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -15,9 +15,18 @@
|
||||
@if($freeNodeLayout['notes'])<div class="fn-subscription-note">{!! nl2br(\App\Services\Seo::body($freeNodeLayout['notes'])) !!}</div>@endif
|
||||
</section>
|
||||
<section class="fn-usage" id="node-usage" aria-labelledby="node-usage-title">
|
||||
<div class="fn-section-heading"><div><h2 id="node-usage-title">从订阅到连接,只需三步</h2></div></div>
|
||||
<ol class="fn-steps"><li><span>01</span><div><strong>复制订阅</strong><p>选择与客户端匹配的格式。</p></div></li><li><span>02</span><div><strong>导入客户端</strong><p>在订阅管理中粘贴链接并更新。</p></div></li><li><span>03</span><div><strong>选择节点</strong><p>开启连接,再检查访问是否正常。</p></div></li></ol>
|
||||
<div class="fn-tutorial-links"><span>第一次使用?</span><a href="/a/clash-verge-rev-windows.html">Windows 入门 ↗</a><a href="/a/m169.html">Android 入门 ↗</a><a href="/client">全部教程 ↗</a></div>
|
||||
<div class="fn-section-heading"><div><h2 id="node-usage-title">使用方法</h2></div></div>
|
||||
<div class="fn-usage__body">
|
||||
<ol class="fn-steps">
|
||||
<li><span class="fn-steps__number" aria-hidden="true">1</span><div><strong>复制订阅</strong><p>复制对应格式的订阅地址。</p></div></li>
|
||||
<li><span class="fn-steps__number" aria-hidden="true">2</span><div><strong>导入客户端</strong><p>粘贴到订阅管理并更新。</p></div></li>
|
||||
<li><span class="fn-steps__number" aria-hidden="true">3</span><div><strong>选择节点</strong><p>开启连接并检查访问结果。</p></div></li>
|
||||
</ol>
|
||||
<nav class="fn-tutorial-links" aria-label="客户端使用教程">
|
||||
<span class="fn-tutorial-links__label">需要详细教程?</span>
|
||||
<div class="fn-tutorial-links__items"><a href="/a/clash-verge-rev-windows.html" aria-label="Windows 入门教程">Windows</a><a href="/a/m169.html" aria-label="Android 入门教程">Android</a><a href="/client">全部教程 <span aria-hidden="true">→</span></a></div>
|
||||
</nav>
|
||||
</div>
|
||||
</section>
|
||||
@if($recommendations['enabled'])
|
||||
@include('components.airport-recommendations')
|
||||
|
||||
@@ -68,7 +68,7 @@ public function test_shared_view_outputs_configured_prices_coupon_and_sponsored_
|
||||
foreach (['福云', 'DP-LINK.NET', 'hardnerd', '>18<', '>26<', '>28<'] as $text) $this->assertStringContainsString($text, $html);
|
||||
$this->assertSame(1, substr_count($html, '<section id="airport-recommendations"'));
|
||||
$this->assertSame(3, substr_count($html, 'rel="sponsored nofollow noopener noreferrer"'));
|
||||
$this->assertSame(2, substr_count($html, 'data-airport-coupon="clashfreenode.com"'));
|
||||
$this->assertSame(3, substr_count($html, 'data-airport-coupon="clashfreenode.com"'));
|
||||
config(['airport_recommendations.providers.fuc.price' => '20', 'airport_recommendations.providers.dpl.enabled' => false]);
|
||||
$updated = view('components.airport-recommendations')->render();
|
||||
$this->assertStringContainsString('>20<', $updated);$this->assertStringNotContainsString('DP-LINK.NET', $updated);
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use App\Services\ResourceArticlePresentation;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class ResourceArticlePresentationTest extends TestCase
|
||||
{
|
||||
public function test_daily_resource_prompts_are_removed_without_changing_resource_markup(): void
|
||||
{
|
||||
$prompts = '<p><b><a href="https://t.me/clashfreenode">👉 点击加入我们的tg频道,每日获取最新节点与苹果账号。</a></b></p><p></p>'
|
||||
.'<p><b><a href="https://github.com/example">👉 点击关注我们的github仓库,永不失联。</a></b></p><p></p>';
|
||||
$resource = '<p><a data-clipboard-text="fixture-subscription">复制订阅</a></p><p>App Store 使用说明</p>';
|
||||
foreach (['freenode', 'shadowrocketids'] as $category) {
|
||||
self::assertSame($resource, ResourceArticlePresentation::body($prompts.$resource, $category));
|
||||
}
|
||||
self::assertSame($prompts.$resource, ResourceArticlePresentation::body($prompts.$resource, 'advanced'));
|
||||
}
|
||||
|
||||
public function test_unrelated_github_and_telegram_links_are_kept(): void
|
||||
{
|
||||
$body = '<p>在 <a href="https://github.com/example">GitHub</a> 下载客户端。</p><p>Telegram 客户端教程</p>';
|
||||
self::assertSame($body, ResourceArticlePresentation::body($body, 'freenode'));
|
||||
}
|
||||
}
|
||||