mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-25 04:29:51 +01:00
浏览器不能自定义 websocket 请求头,测试页面原先把 token 拼在网址查询串里。这个 PR 禁掉查询串凭证后页面就连不上了,所以补一条子协议通道:xiaozhi 加 t 打头 token、d 打头设备地址、c 打头客户端地址,握手只回显 xiaozhi。加前缀是为了让每个值都落在合法的子协议字符集内。 查询串里的设备地址与客户端地址一并不再采信,它们和凭证一样都会落进反代访问日志。 |
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| models | ||
| music | ||
| performance_tester | ||
| plugins_func | ||
| tests | ||
| agent-base-prompt.txt | ||
| app.py | ||
| config.yaml | ||
| config_from_api.yaml | ||
| docker-compose.yml | ||
| docker-compose_all.yml | ||
| mcp_server_settings.json | ||
| performance_tester.py | ||
| pyproject.toml | ||
| requirements.txt | ||