docs(agent): 计划回填 cleanHosts 去重的执行后修订
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -428,6 +428,7 @@ func (c Config) ACLLastGoodPath() string { return filepath.Join(c.StateDir, &quo
|
||||
<pre><code>cd server && go build ./... && go test ./internal/agentd/...
|
||||
git add server/internal/agentd/acl.go server/internal/agentd/acl_test.go server/internal/agentd/config.go
|
||||
git commit -m "feat(agent): 私有目的地 ACL 配置类型与 fail-closed 加载语义"</code></pre>
|
||||
<blockquote><p><b>执行后修订(2026-07-23,提交 <code>d4156b8</code>)</b>:审查指出上面的 <code>cleanHosts</code> 与 <code>warp.go</code> 既有的 <code>cleanDomains</code> 是同包内逐字重复的逻辑。已按用户裁决改为 <b><code>cleanDomains</code> 委托 <code>cleanHosts</code></b>(<code>func (wc *WarpConfig) cleanDomains() []string { return cleanHosts(wc.Domains) }</code>,并移除 <code>warp.go</code> 中变为未使用的 <code>strings</code> import)。<b>若日后照本计划重新实现,请直接采用委托版本,不要写回两份重复实现。</b></p></blockquote>
|
||||
<hr>
|
||||
<h3>Task 2: 由 ACL 产出 route 规则对(放行 + 兜底拒绝)</h3>
|
||||
<p><b>Files:</b></p>
|
||||
|
||||
@@ -429,6 +429,8 @@ git add server/internal/agentd/acl.go server/internal/agentd/acl_test.go server/
|
||||
git commit -m "feat(agent): 私有目的地 ACL 配置类型与 fail-closed 加载语义"
|
||||
```
|
||||
|
||||
> **执行后修订(2026-07-23,提交 `d4156b8`)**:审查指出上面的 `cleanHosts` 与 `warp.go` 既有的 `cleanDomains` 是同包内逐字重复的逻辑。已按用户裁决改为 **`cleanDomains` 委托 `cleanHosts`**(`func (wc *WarpConfig) cleanDomains() []string { return cleanHosts(wc.Domains) }`,并移除 `warp.go` 中变为未使用的 `strings` import)。**若日后照本计划重新实现,请直接采用委托版本,不要写回两份重复实现。**
|
||||
|
||||
---
|
||||
|
||||
### Task 2: 由 ACL 产出 route 规则对(放行 + 兜底拒绝)
|
||||
|
||||
Reference in New Issue
Block a user