LainHE 96f7fd6783 fix(acceleration-poc): align the relay's target guard with the gateway policy
The PoC relay carried its own copy of the restricted-address check and had
drifted well behind src/security/open-target-policy.ts: it missed multicast,
192.0.0.0/24 and the other special-use ranges, 198.18.0.0/15, the TEST-NET
blocks, fec0::/10, ff00::/8 and 2001:db8::/32. A relay started without
allowPrivate would therefore forward to addresses the gateway refuses, and
nothing exercised the guard, so the gap could not be noticed.

The relay must stay a plain .mjs file that the README documents copying to a
remote host without a build step, so it cannot import the TypeScript policy. The
predicate is mirrored instead and pinned by a parity test that fails the moment
the two classifications disagree.

The parity test lives beside the PoC rather than under src/: .dockerignore
excludes scripts/acceleration-poc from the Docker build context while the
Dockerfile runs `tsc` over src/**, so a copy in src/ would resolve locally and
still break the image build with TS2307.

- mirror isRestrictedAddress() exactly, including fail-closed handling of any
  input that is not a literal public address
- add scripts/acceleration-poc/target-guard-parity.test.mjs comparing both
  implementations across private, loopback, link-local, carrier-grade NAT,
  special-use, IPv6 and IPv4-mapped cases
- assert the guard in the PoC smoke run: a relay without allowPrivate must
  reject loopback, private and IPv4-mapped targets while still serving a public
  one, and the run now fails with the offending target instead of passing
  silently

Verified: tsc clean; `npm run build` and `npm run web:build` succeed with
scripts/acceleration-poc moved aside to reproduce the Docker build context; the
parity test fails when either side drifts; the smoke run reports ssrf_guard_ok
and ACCELERATION_POC_OK after the fix, and fails with a LEAK line per unblocked
target once the guard is weakened; the IPv6 smoke run still reports
IPV6_ACCELERATION_POC_OK.
2026-10-15 21:26:22 +08:00
2026-10-13 07:35:19 +08:00
2026-10-13 07:35:19 +08:00
2026-10-13 07:35:19 +08:00
2026-08-31 15:43:50 +08:00
2026-09-07 13:38:14 +08:00
2026-08-31 15:43:50 +08:00
2026-10-13 07:35:19 +08:00
2026-08-31 15:43:50 +08:00

WebSpeak 项目横幅

WebSpeak

让 TeamSpeak 自然地进入浏览器。

A self-hosted browser voice client for TeamSpeak 3 and TeamSpeak 6.

Latest Release Docker Image License GitHub Stars
TeamSpeak Node.js Vue TypeScript Docker

简体中文文档 · 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

社区 · 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 に従ってユーザーに提供する必要があります。

Star History

WebSpeak Star History
Languages
TypeScript 71.8%
Vue 12.1%
JavaScript 9%
CSS 6.1%
HTML 0.4%
Other 0.5%