mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
Updated tls-fingerprint.js using the new targetPlatform parameter
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
function operator(proxies) {
|
||||
function operator(proxies, targetPlatform) {
|
||||
const fingerprint = "你的指纹";
|
||||
proxies.forEach(proxy => {
|
||||
if ($.env.isSurge) {
|
||||
if (targetPlatform === "Surge") {
|
||||
proxy.tfo = `${proxy.tfo || false}, server-cert-fingerprint-sha256=${fingerprint}`;
|
||||
} else if ($.env.isQX) {
|
||||
} else if (targetPlatform === "QX") {
|
||||
proxy.tfo = `${proxy.tfo || false}, tls-cert-sha256=${fingerprint}`;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user