From 5bec981ca1f527ed0078d21a053495b5a0ad5d7a Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 9 Apr 2018 17:39:56 +0800 Subject: [PATCH] update luci-app-kcptun to fix 500 error --- .../luasrc/model/cbi/kcptun/servers.lua | 4 +- .../lean/luci-app-kcptun/po/zh-cn/kcptun.po | 40 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/package/lean/luci-app-kcptun/luasrc/model/cbi/kcptun/servers.lua b/package/lean/luci-app-kcptun/luasrc/model/cbi/kcptun/servers.lua index 9a44cac1e..259727627 100644 --- a/package/lean/luci-app-kcptun/luasrc/model/cbi/kcptun/servers.lua +++ b/package/lean/luci-app-kcptun/luasrc/model/cbi/kcptun/servers.lua @@ -45,8 +45,8 @@ end o = s:option(DummyValue, "_listen_addres", translate("Listen Address")) function o.cfgvalue(self, section) - local local_host = m.uci.get("kcptun", section, "listen_addr") or "0.0.0.0" - local local_port = m.uci.get("kcptun", section, "listen_port") or "12984" + local local_host = m.uci:get("kcptun", section, "listen_addr") or "0.0.0.0" + local local_port = m.uci:get("kcptun", section, "listen_port") or "12984" return "%s:%s" % { get_ip_string(local_host), local_port } end diff --git a/package/lean/luci-app-kcptun/po/zh-cn/kcptun.po b/package/lean/luci-app-kcptun/po/zh-cn/kcptun.po index 7ba065db3..6859c977e 100644 --- a/package/lean/luci-app-kcptun/po/zh-cn/kcptun.po +++ b/package/lean/luci-app-kcptun/po/zh-cn/kcptun.po @@ -285,64 +285,64 @@ msgid "" msgstr "更新 LuCI 之后你可能需要手动刷新当前页面。注意:翻译不会被更新" msgid "acknodelay" -msgstr "立即响应" +msgstr "" msgid "autoexpire" -msgstr "过期时间" +msgstr "" msgid "conn" -msgstr "连接数" +msgstr "" msgid "crypt" -msgstr "加密方式" +msgstr "" msgid "datashard" -msgstr "数据块" +msgstr "" msgid "dscp" -msgstr "数据包优先级" +msgstr "" msgid "interval" -msgstr "间隔时间" +msgstr "" msgid "keepalive" -msgstr "保持连接时间" +msgstr "" msgid "mode" -msgstr "模式" +msgstr "" msgid "mtu" -msgstr "MTU大小" +msgstr "" msgid "nc" -msgstr "关闭流控" +msgstr "" msgid "nocomp" -msgstr "禁用压缩" +msgstr "" msgid "nodelay" -msgstr "Nodelay模式" +msgstr "" msgid "optional" msgstr "可选" msgid "parityshard" -msgstr "校验块" +msgstr "" msgid "rcvwnd" -msgstr "接收窗口大小" +msgstr "" msgid "resend" -msgstr "快速重传" +msgstr "" msgid "scavengettl" -msgstr "清除TTL" +msgstr "" msgid "sndwnd" -msgstr "发送窗口大小" +msgstr "" msgid "snmpperiod" -msgstr "SNMP周期" +msgstr "" msgid "sockbuf" -msgstr "Socket缓冲区大小" +msgstr ""