update code

This commit is contained in:
Nick Peng
2018-11-03 23:33:30 +08:00
parent a321ff84a9
commit 034b5b19b2
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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