luci-app-frpc: Add the bind_addr & bind_port options to the visitor role.

Fix: https://github.com/openwrt/luci/issues/8024

Signed-off-by: Roc Lai <laipeng668@qq.com>
This commit is contained in:
Roc Lai
2025-10-21 23:19:44 +08:00
committed by Paul Donald
parent 0563adb234
commit 1b8564ead6
3 changed files with 18 additions and 0 deletions

View File

@@ -69,6 +69,8 @@ var httpProxyConf = [
var stcpProxyConf = [
[form.ListValue, 'role', _('Role'), undefined, {values: ['server', 'visitor']}],
[form.Value, 'server_name', _('Server name'), undefined, {depends: [{role: 'visitor'}]}],
[form.Value, 'bind_addr', _('Bind addr'), undefined, {depends: [{role: 'visitor'}]}],
[form.Value, 'bind_port', _('Bind port'), undefined, {depends: [{role: 'visitor'}]}],
[form.Value, 'sk', _('Sk')],
];

View File

@@ -342,6 +342,14 @@ msgstr "崩溃时重启"
msgid "Role"
msgstr "角色"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:72
msgid "Bind addr"
msgstr "绑定地址​​"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:73
msgid "Bind port"
msgstr "绑定端口"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:13
msgid "Run daemon as group"
msgstr "以此组权限运行"

View File

@@ -341,6 +341,14 @@ msgstr "崩潰時重生"
msgid "Role"
msgstr "角色"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:72
msgid "Bind addr"
msgstr "綁定位址​​​​"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:73
msgid "Bind port"
msgstr "綁定埠號​​"
#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:13
msgid "Run daemon as group"
msgstr "以群組執行背景執行"