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