From 7c665816a4db2ca2814be094d41b0e8e710f55d9 Mon Sep 17 00:00:00 2001 From: Artemy Date: Sun, 7 Jan 2024 19:20:33 +0300 Subject: [PATCH] feat: search param --- README.md | 10 +++++----- index.js | 8 +++++--- instances.json | 9 ++++++--- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a2e7101..90b0ae1 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ Instances of TXTDot proxies -| Name | Base URL | HTTPS | -| ------------------------------------- | -------------------------- | ----- | -| Official TXTDot instance | | true | -| Official TXTDot instance by artegoser | | true | -| Instance by bloatcat | | true | +| Name | Base URL | Search | Connection | +| ------------------------------------- | -------------------------- | ------- | ---------- | +| Official TXTDot instance | | | https | +| Official TXTDot instance by artegoser | | enabled | https | +| Instance by bloatcat | | | https | diff --git a/index.js b/index.js index 7315613..7924990 100644 --- a/index.js +++ b/index.js @@ -8,12 +8,14 @@ fs.writeFileSync( Instances of TXTDot proxies -| Name | Base URL | HTTPS | -| ---- | -------- | ------ | +| Name | Base URL | Search | Connection | +| ---- | -------- | ------ | ---------- | ${instances .map( (instance) => - `| ${instance.name} | <${instance.baseUrl}> | ${instance.HTTPS} |` + `| ${instance.name} | <${instance.baseUrl}> | ${ + instance.search ? "enabled" : "" + } | ${instance.HTTPS ? "https" : "http"} |` ) .join("\n")} ` diff --git a/instances.json b/instances.json index 389da36..ab29330 100644 --- a/instances.json +++ b/instances.json @@ -2,16 +2,19 @@ { "name": "Official TXTDot instance", "baseUrl": "https://txt.dc09.ru", - "HTTPS": true + "HTTPS": true, + "search": false }, { "name": "Official TXTDot instance by artegoser", "baseUrl": "https://txt.artegoser.ru", - "HTTPS": true + "HTTPS": true, + "search": true }, { "name": "Instance by bloatcat", "baseUrl": "https://txt.bloat.cat", - "HTTPS": true + "HTTPS": true, + "search": false } ]