mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 22:06:45 +08:00
Revise public access setup instructions in README
Updated instructions for public access configuration in README.
This commit is contained in:
@ -118,10 +118,10 @@ http://127.0.0.1:9090/ui
|
||||
> 不建议直接将管理端口暴露到公网。
|
||||
|
||||
如果想要**公网访问**
|
||||
编辑 `.env` 文件,设置公网访问并修改对外端口:
|
||||
编辑 `.env` 文件,设置公网访问(对外端口不用改,改了机器人也能扫到,密钥设置的长点就行):
|
||||
|
||||
```
|
||||
sudo bash -c 'echo "EXTERNAL_CONTROLLER=0.0.0.0:9099" > /opt/clash-for-linux/.env'
|
||||
sudo bash -c 'echo "EXTERNAL_CONTROLLER=0.0.0.0:9090" > /opt/clash-for-linux/.env'
|
||||
```
|
||||
|
||||
配置完成后,**重启服务使配置生效**:
|
||||
|
||||
Reference in New Issue
Block a user