luci-app-clash: bump to 1.5.8a
This commit is contained in:
parent
8af8db5ede
commit
ac3d8a7107
@ -76,16 +76,20 @@ http.setfilehandler(
|
||||
fd = nil
|
||||
|
||||
if fp == "clash" then
|
||||
SYS.exec("chmod 755 /etc/clash/clash 2>&1 &")
|
||||
SYS.exec("chmod 755 /etc/clash/clash 2>&1 &")
|
||||
SYS.exec("rm -rf /usr/share/clash/core_version 2>/dev/null && /etc/clash/clash -v | awk -F ' ' '{print $2}' >> /usr/share/clash/core_version 2>/dev/null")
|
||||
um.value = translate("File saved to") .. ' "/etc/clash/'..meta.file..'"'
|
||||
elseif fp == "clashr" then
|
||||
SYS.exec("chmod 755 /usr/bin/clash 2>&1 &")
|
||||
SYS.exec("chmod 755 /usr/bin/clash 2>&1 &")
|
||||
SYS.exec("rm -rf /usr/share/clash/corer_version 2>/dev/null && /usr/bin/clash -v | awk -F ' ' '{print $2}' >> /usr/share/clash/corer_version 2>/dev/null")
|
||||
um.value = translate("File saved to") .. ' "/usr/bin/'..meta.file..'"'
|
||||
elseif fp == "clashctun" then
|
||||
SYS.exec("chmod 755 /etc/clash/clashtun/clash 2>&1 &")
|
||||
SYS.exec("chmod 755 /etc/clash/clashtun/clash 2>&1 &")
|
||||
SYS.exec("rm -rf /usr/share/clash/tun_version 2>/dev/null && /etc/clash/clashtun/clash -v | awk -F ' ' '{print $2}' >> /usr/share/clash/tun_version 2>/dev/null")
|
||||
um.value = translate("File saved to") .. ' "/etc/clash/clashtun/'..meta.file..'"'
|
||||
elseif fp == "clashdtun" then
|
||||
SYS.exec("chmod 755 /etc/clash/dtun/clash 2>&1 &")
|
||||
SYS.exec("rm -rf /usr/share/clash/dtun_core_version 2>/dev/null && /etc/clash/dtun/clash -v | awk -F ' ' '{print $2}' >> /usr/share/clash/dtun_core_version 2>/dev/null")
|
||||
um.value = translate("File saved to") .. ' "/etc/clash/dtun/'..meta.file..'"'
|
||||
end
|
||||
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
|
||||
experimental:
|
||||
ignore-resolve-fail: true
|
||||
|
||||
# interface-name: eth0
|
||||
|
||||
#authentication:
|
||||
# - "user1:pass1"
|
||||
|
||||
@ -12,6 +13,9 @@ experimental:
|
||||
dns:
|
||||
enable: true
|
||||
listen: 0.0.0.0:5300
|
||||
# # default-nameserver:
|
||||
# # - 114.114.114.114
|
||||
# # - 8.8.8.8
|
||||
enhanced-mode: fake-ip
|
||||
fake-ip-range: 198.18.0.1/16
|
||||
#fake-ip-filter:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
experimental:
|
||||
ignore-resolve-fail: true
|
||||
|
||||
# interface-name: eth0
|
||||
tun:
|
||||
enable: true
|
||||
device-url: dev://utun
|
||||
@ -16,6 +16,9 @@ tun:
|
||||
dns:
|
||||
enable: true
|
||||
listen: 0.0.0.0:5300
|
||||
# # default-nameserver:
|
||||
# # - 114.114.114.114
|
||||
# # - 8.8.8.8
|
||||
enhanced-mode: fake-ip
|
||||
fake-ip-range: 198.18.0.1/16
|
||||
nameserver:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user