docs(network): TSDoc says ICE_SERVERS defaults to an empty list, the code uses public STUN servers

未關閉 適合新手
#509 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
88/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
typescript

研究方向

閱讀 modules/network/src/shared/config.network.ts:55,並將其裝飾器與 TSDoc 進行比較;檢查 docs/docs/network/index.mdx:105 中記載的預設值。更新 TSDoc,註明公開 STUN 伺服器的預設值,並說明 ICE_SERVERS= 會以空清單停用此設定。完成標準:API 參考與程式碼一致,並記載停用方式。

由索引模型根據 Issue 內容生成。

描述

documentation good first issue modules:network
What is the type of issue?

Documentation is incorrect

What is the issue?

The TSDoc says @default [], but the decorator uses DEFAULT_NANOFORGE_ICE_SERVERS (7 public STUN servers). A user who wants no third-party STUN servers (privacy, offline LAN) is told the wrong default by the API reference. docs/docs/network/index.mdx:105 gives the right default.

Evidence:

 * @default []
@Default(DEFAULT_NANOFORGE_ICE_SERVERS)

Suggested fix: Document the real default and how to opt out (ICE_SERVERS= → []).

Found during a code audit of main at be72076.

Where did you find it?
主要語言
TypeScript
星號
7
分支
2
平均合併
1 天 17 小時
30 天內合併 PR
17

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NanoForge-dev/Engine 的其他 Issue

查看 NanoForge-dev/Engine 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。