fix bugs & bump version
This commit is contained in:
2
Makefile
2
Makefile
@@ -8,7 +8,7 @@ LUCI_TITLE:=LuCI for Tailscale
|
|||||||
LUCI_DEPENDS:=+tailscale +jsonfilter +ucode
|
LUCI_DEPENDS:=+tailscale +jsonfilter +ucode
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.1
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ return view.extend({
|
|||||||
o.default = o.disabled;
|
o.default = o.disabled;
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
|
|
||||||
o = s.option(form.Value, 'hostname', _('Hostname'), _("Leave blank to use the device's hostname."));
|
o = s.option(form.Value, 'hostname', _('Devicename'), _("Leave blank to use the device's hostname."));
|
||||||
o.default = '';
|
o.default = '';
|
||||||
o.rmempty = true;
|
o.rmempty = true;
|
||||||
|
|
||||||
@@ -171,9 +171,7 @@ return view.extend({
|
|||||||
|
|
||||||
s = m.section(form.NamedSection, 'settings', 'config');
|
s = m.section(form.NamedSection, 'settings', 'config');
|
||||||
s.title = _('Custom Server Settings');
|
s.title = _('Custom Server Settings');
|
||||||
s.description = _('Use ') +
|
s.description = String.format(_('Use %s to deploy a private server.'), '<a href="https://github.com/juanfont/headscale" target="_blank">headscale</a>');
|
||||||
'<a href="https://github.com/juanfont/headscale" target="_blank">headscale</a>' +
|
|
||||||
_(' to deploy a private server.');
|
|
||||||
|
|
||||||
o = s.option(form.Value, 'loginServer', _('Server address'));
|
o = s.option(form.Value, 'loginServer', _('Server address'));
|
||||||
o.default = '';
|
o.default = '';
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ msgid "Expose physical network routes onto Tailscale."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
||||||
msgid "Hostname"
|
msgid "Devicename"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
||||||
@@ -132,18 +132,14 @@ msgid "Custom Server Settings"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:174
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:174
|
||||||
msgid "Use "
|
msgid "Use %s to deploy a private server."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:176
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:176
|
||||||
msgid " to deploy a private server."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:178
|
|
||||||
msgid "Server address"
|
msgid "Server address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:182
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:180
|
||||||
msgid "Auth Key"
|
msgid "Auth Key"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ msgid "Expose physical network routes onto Tailscale."
|
|||||||
msgstr "将物理网络路由暴露到Tailscale上。"
|
msgstr "将物理网络路由暴露到Tailscale上。"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
||||||
msgid "Hostname"
|
msgid "Devicename"
|
||||||
msgstr "设备名称"
|
msgstr "设备名称"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
||||||
@@ -138,18 +138,14 @@ msgid "Custom Server Settings"
|
|||||||
msgstr "自定义服务器"
|
msgstr "自定义服务器"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:174
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:174
|
||||||
msgid "Use "
|
msgid "Use %s to deploy a private server."
|
||||||
msgstr "使用"
|
msgstr "使用 %s 部署私有服务器"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:176
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:176
|
||||||
msgid " to deploy a private server."
|
|
||||||
msgstr "部署私有服务器"
|
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:178
|
|
||||||
msgid "Server address"
|
msgid "Server address"
|
||||||
msgstr "服务器地址"
|
msgstr "服务器地址"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:182
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:180
|
||||||
msgid "Auth Key"
|
msgid "Auth Key"
|
||||||
msgstr "令牌"
|
msgstr "令牌"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ msgstr "未運行"
|
|||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:64
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:64
|
||||||
msgid "Needs Login"
|
msgid "Needs Login"
|
||||||
msgstr "未登录"
|
msgstr "未登錄"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:67
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:67
|
||||||
msgid "Logout and Unbind"
|
msgid "Logout and Unbind"
|
||||||
@@ -98,7 +98,7 @@ msgid "Expose physical network routes onto Tailscale."
|
|||||||
msgstr "將物理網絡路由暴露到Tailscale上。"
|
msgstr "將物理網絡路由暴露到Tailscale上。"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
||||||
msgid "Hostname"
|
msgid "Devicename"
|
||||||
msgstr "設備名稱"
|
msgstr "設備名稱"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:154
|
||||||
@@ -138,18 +138,14 @@ msgid "Custom Server Settings"
|
|||||||
msgstr "自定義服務器"
|
msgstr "自定義服務器"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:174
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:174
|
||||||
msgid "Use "
|
msgid "Use %s to deploy a private server."
|
||||||
msgstr "使用"
|
msgstr "使用 %s 部署私有服務器"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:176
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:176
|
||||||
msgid " to deploy a private server."
|
|
||||||
msgstr "部署私有服務器"
|
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:178
|
|
||||||
msgid "Server address"
|
msgid "Server address"
|
||||||
msgstr "服務器地址"
|
msgstr "服務器地址"
|
||||||
|
|
||||||
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:182
|
#: applications/luci-app-tailscale/htdocs/luci-static/resources/view/tailscale/base.js:180
|
||||||
msgid "Auth Key"
|
msgid "Auth Key"
|
||||||
msgstr "令牌"
|
msgstr "令牌"
|
||||||
|
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ custom_instance() {
|
|||||||
config_get_bool std_out $cfg 'log_stdout'
|
config_get_bool std_out $cfg 'log_stdout'
|
||||||
config_get_bool std_err $cfg 'log_stderr'
|
config_get_bool std_err $cfg 'log_stderr'
|
||||||
|
|
||||||
[ -n "$acceptRoutes" ] && ARGS="$ARGS --accept-routes true"
|
[ "$acceptRoutes" = "1" ] && ARGS="$ARGS --accept-routes=true"
|
||||||
[ -n "$hostname" ] && ARGS="$ARGS --hostname $hostname"
|
[ -n "$hostname" ] && ARGS="$ARGS --hostname=$hostname"
|
||||||
[ -n "$advertiseRoutes" ] && ARGS="$ARGS --advertise-routes $advertiseRoutes"
|
[ -n "$advertiseRoutes" ] && ARGS="$ARGS --advertise-routes=$advertiseRoutes"
|
||||||
[ -n "$loginServer" ] && ARGS="$ARGS --login-server $loginServer"
|
[ -n "$loginServer" ] && ARGS="$ARGS --login-server=$loginServer"
|
||||||
[ -n "$authkey" ] && ARGS="$ARGS --authkey $authkey"
|
[ -n "$authkey" ] && ARGS="$ARGS --authkey=$authkey"
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command $PROG $ARGS
|
procd_set_param command $PROG $ARGS
|
||||||
|
|||||||
Reference in New Issue
Block a user