From 034b5b19b27baf034cd964a0e960f70cbcd2d2ea Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 3 Nov 2018 23:33:30 +0800 Subject: [PATCH] update code --- package/luci/files/luci/model/cbi/smartdns.lua | 1 + package/openwrt/files/etc/init.d/smartdns | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package/luci/files/luci/model/cbi/smartdns.lua b/package/luci/files/luci/model/cbi/smartdns.lua index 8784954..43a0a96 100644 --- a/package/luci/files/luci/model/cbi/smartdns.lua +++ b/package/luci/files/luci/model/cbi/smartdns.lua @@ -111,6 +111,7 @@ o = s:option(ListValue, "type", translate("type"), translate("DNS Server type")) o.placeholder = "udp" o:value("udp", translate("udp")) o:value("tcp", translate("tcp")) +o:value("tls", translate("tls")) o.default = "udp" o.rempty = false diff --git a/package/openwrt/files/etc/init.d/smartdns b/package/openwrt/files/etc/init.d/smartdns index 77245bd..097a9d9 100644 --- a/package/openwrt/files/etc/init.d/smartdns +++ b/package/openwrt/files/etc/init.d/smartdns @@ -77,6 +77,8 @@ load_server() SERVER="server" if [ "$type" = "tcp" ]; then SERVER="server-tcp" + elif [ "$type" = "tls" ]; then + SERVER="server-tls" fi if [ ! -z "`echo $ip | grep ":"`" ]; then