fix: optimize
This commit is contained in:
1 parent
7afa135b9d
commit
8261919421
3 files changed
+7
-4
No files matched your search
+5
-2
@@ -1,4 +1,7 @@
|
||||
# tun-config-start
|
||||
# default-config-start
|
||||
# 开箱即用 clashui
|
||||
external-controller: '0.0.0.0:9090'
|
||||
# clashtun 相关配置
|
||||
tun:
|
||||
enable: false
|
||||
stack: system # or gvisor
|
||||
@@ -10,4 +13,4 @@ tun:
|
||||
auto-route: true # manage $(ip route) and $(ip rules)
|
||||
auto-redir: true # manage nftable REDIRECT
|
||||
auto-detect-interface: true
|
||||
# tun-config-end
|
||||
# default-config-end
|
||||
+1
-1
@@ -173,7 +173,7 @@ function clashupdate() {
|
||||
function clashmixin() {
|
||||
case "$1" in
|
||||
-e)
|
||||
sudo vi "$CLASH_CONFIG_MIXIN" && {
|
||||
sudo vim "$CLASH_CONFIG_MIXIN" && {
|
||||
_concat_config_restart && _okcat "配置更新成功,已重启生效"
|
||||
}
|
||||
;;
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ YQ_URL="${GH_PROXY}github.com/mikefarah/yq/releases/latest/download/yq_linux_amd
|
||||
TEMP_CONFIG='./resource/config.yaml'
|
||||
TEMP_CLASH_RAR='./resource/clash-*.gz'
|
||||
TEMP_UI_RAR='./resource/yacd.tar.xz'
|
||||
TEMP_YQ_RAR='./resource/yq_linux_amd64.tar.gz'
|
||||
TEMP_YQ_RAR='./resource/yq*.gz'
|
||||
|
||||
CLASH_BASE_DIR='/opt/clash'
|
||||
CLASH_CONFIG_URL="${CLASH_BASE_DIR}/url"
|
||||
|
||||
Reference in new issue
Block a user