Skip to content

Commit

Permalink
luci-app-ssr-plus: Optimal hy2 allocation
Browse files Browse the repository at this point in the history
目前代码:
1、取消端口跳跃时点击“保存和应用”无效,在右上角必须再次保存和应用,此修改修复此问题;
2、启用端口跳跃时,自动隐藏了节点设置的端口,导致服务器列表为乱码字符,此修改实现仍然显示节点端口。
3、此修改仍然显示节点端口并启用端口跳跃时,配置能改为端口跳跃设置的端口范围,如取消端口跳跃,配置改为节点端口;
4、增加配置使用'apln';
  • Loading branch information
zxlhhyccc authored Jan 2, 2024
1 parent 381baf9 commit 2fd8e92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ local ss = {
reuse_port = true
}
local hysteria = {
server = server.server_port and (server.server .. ":" .. server.server_port) or (server.server .. ":" .. server.port_range),
server = (server.port_range and (server.server .. ":" .. server.port_range)) or (server.server_port and (server.server .. ":" .. server.server_port)),
bandwidth = {
up = tonumber(server.uplink_capacity) and tonumber(server.uplink_capacity) .. " mbps" or nil,
down = tonumber(server.downlink_capacity) and tonumber(server.downlink_capacity) .. " mbps" or nil
Expand Down Expand Up @@ -327,6 +327,7 @@ local hysteria = {
auth = server.hy2_auth,
tls = (server.tls_host) and {
sni = server.tls_host,
alpn = server.tls_alpn or nil,
insecure = (server.insecure == "1") and true or false,
pinSHA256 = (server.insecure == "1") and server.pinsha256 or nil
} or {
Expand Down

0 comments on commit 2fd8e92

Please sign in to comment.