Improve secure url checking

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
This commit is contained in:
Abel Fernández
2023-04-17 16:37:26 +02:00
committed by GitHub
co-authored by Simon Warta
parent b6338db0a1
commit 4ee7903b05
+1 -1
View File
@@ -174,7 +174,7 @@ const ChainSelect = () => {
const getNodeFromArray = async (nodeArray: { address: string; provider: string }[]) => {
// only return https connections
const secureNodes = nodeArray
.filter((node) => node.address.includes("https://"))
.filter((node) => node.address.startsWith("https://"))
.map(({ address }) => address);
if (secureNodes.length === 0) {