resolveClientIp() read X-Forwarded-For, then X-Real-IP, then the socket address, taking whichever parsed first, with no notion of who wrote them. Every visitor can set those headers on the WebSocket upgrade, so the address recorded for a connection was chosen by the client rather than observed. It is logged when the client starts connecting, when it reaches TeamSpeak and when its session ends, and readConnectionHistory() turns those lines into the source column of the admin connection log, so a visitor could put any address into the audit trail. Nothing else was affected: join, mobile and admin-login rate limiting key on request.socket.remoteAddress, and the admin audit records no address at all, so no admission or authentication decision depended on the forwarded value. Forwarding headers are now read only when the peer that sent them is a declared proxy. A trusted chain is walked from the hop nearest to us towards the client, and the first address that is not a trusted proxy is reported, so a value a client injects to the left of the entry its proxy appended is never recorded. X-Real-IP is used only for a trusted peer that sent no chain, and never in preference to one: a proxy appends its peer to X-Forwarded-For, whereas X-Real-IP is only as good as the proxy configuration and can still carry a client value if it is forwarded rather than overwritten. Whoever we believe can choose what we record, so the default trusts loopback alone. That keeps a reverse proxy on the same host working, including the published host-network container. WEBSPEAK_TRUSTED_PROXIES takes IPs and CIDRs for anything else; an invalid entry stops startup instead of silently narrowing what is trusted. Tests cover the direct-client case including the mapped IPv4 peer form, the chain walk over IPv4 and IPv6, chains that are trusted end to end, X-Real-IP gating, default loopback, CIDR and ::ffff: entries, and rejected misconfiguration.
WebSpeak
让 TeamSpeak 自然地进入浏览器。
A self-hosted browser voice client for TeamSpeak 3 and TeamSpeak 6.
简体中文文档 · English documentation · Deutsche Dokumentation · Русская документация · 日本語ドキュメント
项目简介 · Overview
| 逻辑 | 中文 | English |
|---|---|---|
| WHAT | WebSpeak 是一个可自行部署的 TeamSpeak 3 / TeamSpeak 6 网页客户端与语音网关。 | WebSpeak is a self-hosted browser client and voice gateway for TeamSpeak 3 and TeamSpeak 6. |
| WHY | 无需安装桌面客户端,用户打开网页即可加入频道;部署者仍然掌控目标服务器、访问策略和数据。 | Users can join a voice channel from a browser without installing a desktop client, while the operator keeps control of servers, access, and data. |
| HOW | 部署后在管理员控制台配置 TeamSpeak 目标和访问方式,浏览器负责交互与音频,WebSpeak 负责网关连接。 | Configure the TeamSpeak target and access policy in the administration console. The browser handles interaction and audio; WebSpeak provides the gateway connection. |
文档 · Documentation
- 简体中文
- English
- Deutsch
- Русский
- 日本語
- 皮肤开发指南 / Skin development guide
- 皮肤开发 Agent Skill / Skin Development Agent Skill
社区 · Community
友链项目 · Friend projects
NeteaseTSBot
面向 TeamSpeak 3/6 的多平台音乐点播机器人,支持网易云音乐、QQ 音乐和 Bilibili 音频播放,并提供 Web 控制台。
A multi-platform music bot for TeamSpeak 3/6 with Netease Cloud Music, QQ Music, and Bilibili playback, plus a web console.
Ein plattformübergreifender Musikbot für TeamSpeak 3/6 mit Netease Cloud Music, QQ Music und Bilibili sowie Webkonsole.
Contributors · 贡献者
感谢通过 PR 改进 WebSpeak 的贡献者。以下按 GitHub 的合并记录列出。
- LainHE — PR #2 改进浏览器端报错翻译;PR #8 修正缩放、浮动布局和首页脚注。
- TimmySheep — 已合并 PR #13、#15–#24,涉及 TS6 既有屏幕共享发现、屏幕比例、移动端语音/常亮/皮肤菜单、身份频道选项、PWA/主题、聊天历史、成员音频状态和麦克风权限等改进。
- yichen11818 — PR #25 支持通过 TeamSpeak 注册昵称连接,并在设置、收藏和邀请中保留昵称目标。
许可证 · License · Lizenz · Лицензия · ライセンス
WebSpeak 使用 GNU Affero General Public License v3.0 only 发布。你可以使用、研究、修改和再分发本项目;如果修改后的版本通过网络向用户提供服务,需要按照 AGPL-3.0 向这些用户提供对应源代码。
WebSpeak is released under the GNU Affero General Public License v3.0 only. If a modified version is offered to users over a network, its corresponding source code must be offered under AGPL-3.0.
WebSpeak wird unter der GNU Affero General Public License v3.0 only veröffentlicht. Bei Bereitstellung einer veränderten Version über ein Netzwerk muss der entsprechende Quellcode unter AGPL-3.0 angeboten werden.
WebSpeak распространяется по лицензии GNU Affero General Public License v3.0 only. Если изменённая версия предоставляется пользователям через сеть, соответствующий исходный код должен быть доступен этим пользователям на условиях AGPL-3.0.
WebSpeak は GNU Affero General Public License v3.0 only の下で公開されています。変更版をネットワーク経由でユーザーに提供する場合は、対応するソースコードを AGPL-3.0 に従ってユーザーに提供する必要があります。