mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-04-21 05:09:32 +08:00
14 lines
462 B
JavaScript
14 lines
462 B
JavaScript
/**
|
|
* 为节点添加 tls 证书指纹
|
|
*/
|
|
function operator(proxies, targetPlatform) {
|
|
const {fingerprint} = $arguments;
|
|
proxies.forEach(proxy => {
|
|
if (targetPlatform === "Surge") {
|
|
proxy.tfo = `${proxy.tfo || false}, server-cert-fingerprint-sha256=${fingerprint}`;
|
|
} else if (targetPlatform === "QX") {
|
|
proxy.tfo = `${proxy.tfo || false}, tls-cert-sha256=${fingerprint}`;
|
|
}
|
|
});
|
|
return proxies;
|
|
} |