mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 01:33:56 +08:00
🛸 Sync 2026-05-05 08:35:51
This commit is contained in:
1 parent
83e64b4af8
commit
89dad36e7c
3 files changed
+22
-6
No files matched your search
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-passwall
|
PKG_NAME:=luci-app-passwall
|
||||||
PKG_VERSION:=26.5.3
|
PKG_VERSION:=26.5.3
|
||||||
PKG_RELEASE:=111
|
PKG_RELEASE:=112
|
||||||
PKG_PO_VERSION:=$(PKG_VERSION)
|
PKG_PO_VERSION:=$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
|||||||
@@ -406,16 +406,19 @@ local current_node = map:get(section)
|
|||||||
} else if (v_transport === "grpc") {
|
} else if (v_transport === "grpc") {
|
||||||
info.path = opt.get(dom_prefix + "grpc_serviceName").value;
|
info.path = opt.get(dom_prefix + "grpc_serviceName").value;
|
||||||
}
|
}
|
||||||
if (info.path && info.path != "") {
|
|
||||||
info.path = encodeURI(info.path);
|
|
||||||
}
|
|
||||||
info.net = v_transport;
|
info.net = v_transport;
|
||||||
|
|
||||||
info.security = opt.get(dom_prefix + "security").value || "auto";
|
info.security = opt.get(dom_prefix + "security").value || "auto";
|
||||||
|
info.scy = info.security;
|
||||||
if (opt.get(dom_prefix + "tls").checked) {
|
if (opt.get(dom_prefix + "tls").checked) {
|
||||||
var v_security = "tls";
|
var v_security = "tls";
|
||||||
info.tls = "tls";
|
info.tls = "tls";
|
||||||
info.sni = opt.get(dom_prefix + "tls_serverName").value;
|
info.sni = opt.get(dom_prefix + "tls_serverName").value;
|
||||||
|
info.alpn = opt.get(dom_prefix + "alpn")?.value;
|
||||||
|
if (info.alpn === "default") info.alpn = undefined;
|
||||||
|
info.fp = opt.get(dom_prefix + "fingerprint")?.value;
|
||||||
|
info.pcs = opt.get(dom_prefix + "tls_pinSHA256")?.value;
|
||||||
|
opt.get(dom_prefix + "tls_allowInsecure")?.checked && (info.insecure = "1");
|
||||||
}
|
}
|
||||||
|
|
||||||
opt.get(dom_prefix + "tcp_fast_open")?.checked && (info.tfo = "1");
|
opt.get(dom_prefix + "tcp_fast_open")?.checked && (info.tfo = "1");
|
||||||
@@ -1350,9 +1353,16 @@ local current_node = map:get(section)
|
|||||||
opt.set(dom_prefix + 'address', unbracketIP(ssm.add));
|
opt.set(dom_prefix + 'address', unbracketIP(ssm.add));
|
||||||
opt.set(dom_prefix + 'port', ssm.port);
|
opt.set(dom_prefix + 'port', ssm.port);
|
||||||
opt.set(dom_prefix + 'uuid', ssm.id);
|
opt.set(dom_prefix + 'uuid', ssm.id);
|
||||||
|
opt.set(dom_prefix + 'security', ssm.security || ssm.scy || "auto");
|
||||||
opt.set(dom_prefix + 'tls', ssm.tls === "tls");
|
opt.set(dom_prefix + 'tls', ssm.tls === "tls");
|
||||||
if (ssm.tls === "tls") {
|
if (ssm.tls === "tls") {
|
||||||
opt.set(dom_prefix + 'tls_serverName', ssm.sni || ssm.host);
|
opt.set(dom_prefix + 'tls_serverName', ssm.sni || ssm.host);
|
||||||
|
opt.set(dom_prefix + 'alpn', ssm.alpn || "default");
|
||||||
|
if (ssm.fp && ssm.fp !== "") {
|
||||||
|
opt.set(dom_prefix + 'utls', true);
|
||||||
|
opt.set(dom_prefix + 'fingerprint', ssm.fp);
|
||||||
|
}
|
||||||
|
opt.set(dom_prefix + 'tls_pinSHA256', ssm.pcs || "");
|
||||||
opt.set(
|
opt.set(
|
||||||
dom_prefix + 'tls_allowInsecure',
|
dom_prefix + 'tls_allowInsecure',
|
||||||
!((ssm.allowinsecure ?? '0') === '0' && (ssm.allowInsecure ?? '0') === '0' && (ssm.insecure ?? '0') === '0')
|
!((ssm.allowinsecure ?? '0') === '0' && (ssm.allowInsecure ?? '0') === '0' && (ssm.insecure ?? '0') === '0')
|
||||||
@@ -1798,7 +1808,8 @@ local current_node = map:get(section)
|
|||||||
opt.get(dom_prefix + 'port').blur();
|
opt.get(dom_prefix + 'port').blur();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
s.innerHTML = "<font color='red'><%:Invalid Share URL Format%></font>: " + ssu[0];
|
s.innerHTML = "<font color='red'><%:Invalid Share URL Format%></font>";
|
||||||
|
sessionStorage.removeItem("fromUrl");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
s.innerHTML = "<font color='green'><%:Import Finished %></font>";
|
s.innerHTML = "<font color='green'><%:Import Finished %></font>";
|
||||||
|
|||||||
@@ -663,9 +663,14 @@ local function processData(szType, content, add_mode, group, sub_cfg)
|
|||||||
result.httpupgrade_host = info.host
|
result.httpupgrade_host = info.host
|
||||||
result.httpupgrade_path = info.path
|
result.httpupgrade_path = info.path
|
||||||
end
|
end
|
||||||
if not info.security then result.security = "auto" end
|
result.security = info.security or info.scy or "auto"
|
||||||
if info.tls == "tls" or info.tls == "1" then
|
if info.tls == "tls" or info.tls == "1" then
|
||||||
result.tls = "1"
|
result.tls = "1"
|
||||||
|
result.alpn = info.alpn
|
||||||
|
if info.fp and info.fp ~= "" then
|
||||||
|
result.utls = "1"
|
||||||
|
result.fingerprint = info.fp
|
||||||
|
end
|
||||||
result.tls_serverName = (info.sni and info.sni ~= "") and info.sni or info.host
|
result.tls_serverName = (info.sni and info.sni ~= "") and info.sni or info.host
|
||||||
result.tls_pinSHA256 = info.pcs
|
result.tls_pinSHA256 = info.pcs
|
||||||
result.tls_CertByName = info.vcn
|
result.tls_CertByName = info.vcn
|
||||||
|
|||||||
Reference in new issue
Block a user