Skip to content

Commit

Permalink
1.7.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
frainzy1477 committed Jun 30, 2020
1 parent 8c20a98 commit cd32c56
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-clash
PKG_VERSION:=v1.7.5.1
PKG_VERSION:=v1.7.5.2
PKG_MAINTAINER:=frainzy1477

include $(INCLUDE_DIR)/package.mk
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
A rule based custom proxy for Openwrt based on <a href="https://github.com/Dreamacro/clash" target="_blank">Clash</a>.
</p>
<p align="center">
<a target="_blank" href="https://github.com/frainzy1477/luci-app-clash/releases/tag/v1.7.5.1">
<img src="https://img.shields.io/badge/luci%20for%20clash-v1.7.5.1-blue.svg">
<a target="_blank" href="https://github.com/frainzy1477/luci-app-clash/releases/tag/v1.7.5.2">
<img src="https://img.shields.io/badge/luci%20for%20clash-v1.7.5.2-blue.svg">
</a>
<a href="https://github.com/frainzy1477/luci-app-clash/releases" target="_blank">
<img src="https://img.shields.io/github/downloads/frainzy1477/luci-app-clash/total.svg?style=flat-square"/>
Expand All @@ -20,8 +20,8 @@
- Upload ipk file to tmp folder
- cd /tmp
- opkg update
- opkg install luci-app-clash_v1.7.5.1_all.ipk
- opkg install luci-app-clash_v1.7.5.1_all.ipk --force-depends
- opkg install luci-app-clash_v1.7.5.2_all.ipk
- opkg install luci-app-clash_v1.7.5.2_all.ipk --force-depends

## Uninstall
- opkg remove luci-app-clash
Expand Down
8 changes: 4 additions & 4 deletions luasrc/model/cbi/clash/dns/dns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ y.default = 0
y.description = translate("Enable Tun and make sure you are using tun supported core")

y = s:option(ListValue, "stack", translate("Stack"))
y:value("system", translate("System"))
y:value("gvisor", translate("Gvisor"))
y:value("system", translate("system"))
y:value("gvisor", translate("gvisor"))
y.description = translate("Select Stack Mode")
y:depends("tun_mode", 1)

Expand Down Expand Up @@ -76,7 +76,7 @@ o.cfgvalue = function(...)
end

o = s:option(ListValue, "type", translate("Protocol"))
o:value("none", translate("None"))
o:value("none", translate("No Protocol"))
o:value("tcp://", translate("TCP"))
o:value("udp://", translate("UDP"))
o:value("tls://", translate("TLS"))
Expand Down Expand Up @@ -161,7 +161,7 @@ o:value("nameserver", translate("NameServer"))
o:value("fallback", translate("FallBack"))

o = s:option(ListValue, "protocol", translate("Protocol"))
o:value("none", translate("None"))
o:value("none", translate("No Protocol"))
o:value("tcp://", translate("TCP"))
o:value("udp://", translate("UDP"))
o:value("tls://", translate("TLS"))
Expand Down
5 changes: 4 additions & 1 deletion po/zh-cn/clash.po
Original file line number Diff line number Diff line change
Expand Up @@ -1275,4 +1275,7 @@ msgid "New Version"
msgstr "最新内核版本"

msgid "Download Update"
msgstr "下载最新版本客户端"
msgstr "下载最新版本客户端"

msgid "No Protocol"
msgstr "不带协议"
2 changes: 1 addition & 1 deletion root/usr/share/clash/luci_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.7.5.1
v1.7.5.2
41 changes: 29 additions & 12 deletions root/usr/share/clash/yum_change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,18 @@ dnshijack_set()
return
fi

if [ -z "$port" ]; then

if [ "$type" == "none" ] && [ ! -z "$port" ]; then
echo " - $ip:$port">>/tmp/dnshijack.yaml
elif [ "$type" == "none" ] && [ -z "$port" ]; then
echo " - $ip">>/tmp/dnshijack.yaml
elif [ -z "$port" ]; then
echo " - $type$ip">>/tmp/dnshijack.yaml
else
echo " - $type$ip:$port">>/tmp/dnshijack.yaml
fi



}
config_load "clash"
config_foreach dnshijack_set "dnshijack"
Expand Down Expand Up @@ -261,18 +267,29 @@ dnsservers_set()
return
fi




if [ "$ser_type" == "nameserver" ]; then
if [ -z "$ser_port" ]; then
echo " - $protocol$ser_address" >>/tmp/nameservers.yaml
else
echo " - $protocol$ser_address:$ser_port" >>/tmp/nameservers.yaml
fi
if [ "$protocol" == "none" ] && [ ! -z "$ser_port" ]; then
echo " - $ser_address:$ser_port" >>/tmp/nameservers.yaml
elif [ "$protocol" == "none" ] && [ -z "$ser_port" ]; then
echo " - $ser_address" >>/tmp/nameservers.yaml
elif [ -z "$ser_port" ]; then
echo " - $protocol$ser_address" >>/tmp/nameservers.yaml
else
echo " - $protocol$ser_address:$ser_port" >>/tmp/nameservers.yaml
fi
elif [ "$ser_type" == "fallback" ]; then
if [ -z "$ser_port" ]; then
echo " - $protocol$ser_address" >>/tmp/fallback.yaml
else
echo " - $protocol$ser_address:$ser_port" >>/tmp/fallback.yaml
fi
if [ "$protocol" == "none" ] && [ ! -z "$ser_port" ]; then
echo " - $ser_address:$ser_port" >>/tmp/fallback.yaml
elif [ "$protocol" == "none" ] && [ -z "$ser_port" ]; then
echo " - $ser_address" >>/tmp/fallback.yaml
elif [ -z "$ser_port" ]; then
echo " - $protocol$ser_address" >>/tmp/fallback.yaml
else
echo " - $protocol$ser_address:$ser_port" >>/tmp/fallback.yaml
fi
fi

}
Expand Down

0 comments on commit cd32c56

Please sign in to comment.