From 2328b5ac31dc467e2cab3e80442133217493c7c7 Mon Sep 17 00:00:00 2001 From: Peng-YM <1048217874pengym@gmail.com> Date: Tue, 29 Mar 2022 22:29:03 +0800 Subject: [PATCH] Added an example of tls fingerprint configuration --- scripts/tls-fingerprint.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/tls-fingerprint.js diff --git a/scripts/tls-fingerprint.js b/scripts/tls-fingerprint.js new file mode 100644 index 0000000..26f896c --- /dev/null +++ b/scripts/tls-fingerprint.js @@ -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; +} \ No newline at end of file