Files
AstrBot/docs/zh/others/ipv6.md
エイカク 597ed67467 fix: avoid lsp client cancel scope leaks (#6961)
* fix: avoid lsp client cancel scope leaks

* fix: observe lsp reader task failures

* fix: trim trailing whitespace in docs

* fix: harden lsp client reconnect handling

* fix: refine lsp client test coverage

* fix: harden lsp reader task teardown

* fix: refine lsp reader failure handling

* fix: centralize lsp reader lifecycle

* docs: fix platform adapter session type

* test: shorten hanging lsp fixture sleep

* docs: translate ai guide details label

* fix: simplify lsp reader task lifecycle
2026-03-26 04:00:44 +09:00

36 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# IPv6支持
目前ipv6普及度很高很多家庭宽带都支持ipv6,且具有公网ipv6地址本教程将介绍如何在astrbot中充分利用ipv6。
# 准备
如果你是服务器环境可以直接跳过以下内容因为无需过多配置即可通过指定host从而通过公网ipv6访问astrbot服务
如果你是家庭宽带环境,处于安全考虑,从外部无法直接访问,需按照以下步骤修改
这里以中国电信天翼宽带为例
进入光猫后台面板
你可以试试192.168.1.1
如图所示:
![image](https://files.astrbot.app/docs/source/images/ipv6/index.png)
这里超级管理员密码是随机生成的,需要用到一点社会工程学手段搞到这个超级密码
当然你也可以用漏洞搞到
如果你可以联系到当时给你家安装宽带的师傅,给他打个电话就可以要到
进入后菜单如下
![image](https://files.astrbot.app/docs/source/images/ipv6/index.png)
依此点击:安全-防火墙
![image](https://files.astrbot.app/docs/source/images/ipv6/firewall.png)
将防火墙等级设置为低
同时将启用IPV6 SESSEION关闭此选项开启后将无法从外部访问
# 启动服务
```bash
# 新版本默认0.0.0.0改成了::默认启用了双栈支持如果使用的旧版需要手动修改配置文件将host修改为[::]
astrbot run
# 不出意外你可以在输出里面看到24开头一长串的ipv6链接
# http://[ipv6地址]:6185
```