feat: search param

This commit is contained in:
Artemy 2024-01-07 19:20:33 +03:00
parent 4b93e55c56
commit 7c665816a4
3 changed files with 16 additions and 11 deletions

View file

@ -2,8 +2,8 @@
Instances of TXTDot proxies
| Name | Base URL | HTTPS |
| ------------------------------------- | -------------------------- | ----- |
| Official TXTDot instance | <https://txt.dc09.ru> | true |
| Official TXTDot instance by artegoser | <https://txt.artegoser.ru> | true |
| Instance by bloatcat | <https://txt.bloat.cat> | true |
| Name | Base URL | Search | Connection |
| ------------------------------------- | -------------------------- | ------- | ---------- |
| Official TXTDot instance | <https://txt.dc09.ru> | | https |
| Official TXTDot instance by artegoser | <https://txt.artegoser.ru> | enabled | https |
| Instance by bloatcat | <https://txt.bloat.cat> | | https |

View file

@ -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")}
`

View file

@ -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
}
]