Use localhost gateway by default to avoid leaking queries by accident

This commit is contained in:
Willian Mitsuda 2021-09-12 22:03:56 -03:00
parent daae37a6ab
commit 22fd8ad5c2
2 changed files with 3 additions and 4 deletions

View File

@ -43,13 +43,13 @@ const Contracts: React.FC<ContractsProps> = ({
<RadioGroup value={sourcifySource} onChange={setSourcifySource}>
<div className="flex space-x-2">
<RadioButton value={SourcifySource.IPFS_IPNS}>
Resolve IPNS
Resolve IPNS @localhost:8080 gateway
</RadioButton>
<RadioButton value={SourcifySource.CENTRAL_SERVER}>
Sourcify Servers
</RadioButton>
<RadioButton value={SourcifySource.CUSTOM_SNAPSHOT_SERVER}>
Local Snapshot
Local Snapshot @localhost:3006
</RadioButton>
</div>
</RadioGroup>

View File

@ -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";