mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
Added an example of tls fingerprint configuration
This commit is contained in:
11
scripts/tls-fingerprint.js
Normal file
11
scripts/tls-fingerprint.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function operator(proxies) {
|
||||
const fingerprint = "你的指纹";
|
||||
proxies.forEach(proxy => {
|
||||
if ($.env.isSurge) {
|
||||
proxy.tfo = `${proxy.tfo || false}, server-cert-fingerprint-sha256=${fingerprint}`;
|
||||
} else if ($.env.isQX) {
|
||||
proxy.tfo = `${proxy.tfo || false}, tls-cert-sha256=${fingerprint}`;
|
||||
}
|
||||
});
|
||||
return proxies;
|
||||
}
|
||||
Reference in New Issue
Block a user