mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 22:06:45 +08:00
refactor
This commit is contained in:
6
.env
6
.env
@ -27,7 +27,7 @@ CLASH_AUTO_DOWNLOAD=auto
|
||||
MIHOMO_VERSION=v1.19.21
|
||||
|
||||
# 内核自定义下载地址
|
||||
CLASH_DOWNLOAD_URL_TEMPLATE='https://github.com/MetaCubeX/mihomo/releases/download/v1.19.21/mihomo-linux-amd64-v1.19.21.gz'
|
||||
CLASH_DOWNLOAD_URL_TEMPLATE='https://github.com/MetaCubeX/mihomo/releases/download/{version}/mihomo-{arch}-{version}.gz'
|
||||
|
||||
# 订阅请求头(可选)
|
||||
# 常见机场需要 User-Agent;如不需要可留空
|
||||
@ -73,10 +73,10 @@ export CLASH_REDIR_PORT=7892
|
||||
# ⚠️ 安全建议:
|
||||
# - 服务器自用推荐:127.0.0.1
|
||||
# - 需要局域网设备使用再改:0.0.0.0
|
||||
export CLASH_LISTEN_IP='127.0.0.1'
|
||||
export CLASH_LISTEN_IP='0.0.0.0'
|
||||
|
||||
# 是否允许局域网访问(配合 CLASH_LISTEN_IP 使用)
|
||||
export CLASH_ALLOW_LAN=false
|
||||
export CLASH_ALLOW_LAN=true
|
||||
|
||||
# 是否即使 MMDB 下载失败也继续启动
|
||||
export CLASH_SKIP_GEOIP_TEST_FAILURE="true"
|
||||
|
||||
Reference in New Issue
Block a user