mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 15:33:47 +00:00
Added $argument for "ScriptFilter" and "ScriptOperator", closes #90
Example: https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/scripts/tls-fingerprint.js#fingerprint=67:1B:C8:F2:D4:20:EE:A7:EE:60:DA:BB:A3:F9:A4:D7:C8:29:0F:3E:2F:75:B6:A9:46:88:48:7D:D3:97:7E:98
This commit is contained in:
1 parent
25cb0e7a69
commit
2d4f589eb0
3 files changed
+20
-8
No files matched your search
@@ -1,5 +1,5 @@
|
||||
function operator(proxies, targetPlatform) {
|
||||
const fingerprint = "你的指纹";
|
||||
const {fingerprint} = $arguments;
|
||||
proxies.forEach(proxy => {
|
||||
if (targetPlatform === "Surge") {
|
||||
proxy.tfo = `${proxy.tfo || false}, server-cert-fingerprint-sha256=${fingerprint}`;
|
||||
|
||||
Reference in new issue
Block a user