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