From 0ed09713e8def57e8592e9bb0dd8f00f403f7ee5 Mon Sep 17 00:00:00 2001 From: gitea-action Date: Thu, 8 May 2025 18:30:21 +0800 Subject: [PATCH] luci-app-passwall: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall/commit/a8fe2eecf6056742281f08f974352bac2e7aac39 --- .../model/cbi/passwall/client/haproxy.lua | 4 +- .../luasrc/view/passwall/haproxy/js.htm | 40 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 luci-app-passwall/luasrc/view/passwall/haproxy/js.htm diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/haproxy.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/haproxy.lua index db31a67c3..f631c562d 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/haproxy.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/haproxy.lua @@ -135,7 +135,7 @@ end ---- Haproxy Port o = s:option(Value, "haproxy_port", translate("Haproxy Port")) o.datatype = "port" -o.default = 1181 +o.default = 65535 o.rmempty = false ---- Node Weight @@ -158,4 +158,6 @@ o:value(0, translate("Primary")) o:value(1, translate("Standby")) o.rmempty = false +s:append(Template(appname .. "/haproxy/js")) + return m diff --git a/luci-app-passwall/luasrc/view/passwall/haproxy/js.htm b/luci-app-passwall/luasrc/view/passwall/haproxy/js.htm new file mode 100644 index 000000000..508842764 --- /dev/null +++ b/luci-app-passwall/luasrc/view/passwall/haproxy/js.htm @@ -0,0 +1,40 @@ + +