Skip to content

docs(config/legacy): fix truncated struct comments in LocalSvrConf - #5484

Open
zhaoxinyi02 wants to merge 1 commit into
fatedier:devfrom
zhaoxinyi02:fix-legacy-proxy-comments
Open

docs(config/legacy): fix truncated struct comments in LocalSvrConf#5484
zhaoxinyi02 wants to merge 1 commit into
fatedier:devfrom
zhaoxinyi02:fix-legacy-proxy-comments

Conversation

@zhaoxinyi02

Copy link
Copy Markdown

WHY

The legacy LocalSvrConf struct doc comments were corrupted by an over-broad word replacement, producing fragments that no longer read as English:

  • LocalSvrConf configures what location the client will to → missing verb (will to)
  • LocalIP specifies the IP address or host name to to → duplicated to
  • LocalPort specifies the port to to → duplicated to
  • Plugin specifies what plugin should be used for ng → truncated (for ng)

These are the only occurrences of such corruption in pkg/config/legacy; the rest of the file is intact, so this looks like a localized bad find/replace rather than a systemic issue.

WHAT

Restore the intended wording, matching the equivalent v1 comments in pkg/config/v1/proxy.go (ProxyBackend):

  • will forward to
  • of the backend (for both LocalIP and LocalPort)
  • for handling connections

Also fix the field reference LocalIpLocalIP to match the actual Go field name, so godoc renders the reference correctly.

Pure doc/comment change; no code or behavior touched.

The legacy LocalSvrConf doc comments were corrupted by an over-broad
word replacement, producing fragments like 'will to', 'to to', and
'for ng'. Restore the intended wording, matching the v1 ProxyBackend
comments ('of the backend', 'handling connections'), and fix the
field reference LocalIp -> LocalIP to match the actual field name.

Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
Copilot AI lite review requested due to automatic review settings August 10, 2026 04:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes corrupted legacy godoc comments on LocalSvrConf so they read correctly again and render properly in documentation.

Changes:

  • Restored intended wording in LocalSvrConf and its fields (LocalIP, LocalPort) to remove truncated/duplicated fragments.
  • Clarified the Plugin field comment and corrected the field reference to LocalIP so godoc links to the actual identifier.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kilo-code-bot

kilo-code-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • pkg/config/legacy/proxy.go

Reviewed by gpt-5.6-sol · Input: 27 · Output: 3.5K · Cached: 165.5K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants