From 22fd8ad5c25135d25d346cbaa3e3fc6000446869 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sun, 12 Sep 2021 22:03:56 -0300 Subject: [PATCH] Use localhost gateway by default to avoid leaking queries by accident --- src/address/Contracts.tsx | 4 ++-- src/url.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/address/Contracts.tsx b/src/address/Contracts.tsx index 07bf386..4d322c3 100644 --- a/src/address/Contracts.tsx +++ b/src/address/Contracts.tsx @@ -43,13 +43,13 @@ const Contracts: React.FC = ({
- Resolve IPNS + Resolve IPNS @localhost:8080 gateway Sourcify Servers - Local Snapshot + Local Snapshot @localhost:3006
diff --git a/src/url.ts b/src/url.ts index ffbca9b..9b80e34 100644 --- a/src/url.ts +++ b/src/url.ts @@ -27,8 +27,7 @@ export enum SourcifySource { const sourcifyIPNS = "k51qzi5uqu5dll0ocge71eudqnrgnogmbr37gsgl12uubsinphjoknl6bbi41p"; -const ipfsGatewayPrefix = `https://ipfs.io/ipns/${sourcifyIPNS}`; -// const ipfsGatewayPrefix = "http://localhost:8080/ipfs/QmWQoGfrLcizHueg3YkgDCh1S7SkfSP9A7H8YeZmUDfbnn" +const ipfsGatewayPrefix = `http://localhost:8080/ipns/${sourcifyIPNS}`; const sourcifyHttpRepoPrefix = `https://repo.sourcify.dev`; const snapshotPrefix = "http://localhost:3006";