Use localhost gateway by default to avoid leaking queries by accident
This commit is contained in:
parent
daae37a6ab
commit
22fd8ad5c2
|
@ -43,13 +43,13 @@ const Contracts: React.FC<ContractsProps> = ({
|
||||||
<RadioGroup value={sourcifySource} onChange={setSourcifySource}>
|
<RadioGroup value={sourcifySource} onChange={setSourcifySource}>
|
||||||
<div className="flex space-x-2">
|
<div className="flex space-x-2">
|
||||||
<RadioButton value={SourcifySource.IPFS_IPNS}>
|
<RadioButton value={SourcifySource.IPFS_IPNS}>
|
||||||
Resolve IPNS
|
Resolve IPNS @localhost:8080 gateway
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
<RadioButton value={SourcifySource.CENTRAL_SERVER}>
|
<RadioButton value={SourcifySource.CENTRAL_SERVER}>
|
||||||
Sourcify Servers
|
Sourcify Servers
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
<RadioButton value={SourcifySource.CUSTOM_SNAPSHOT_SERVER}>
|
<RadioButton value={SourcifySource.CUSTOM_SNAPSHOT_SERVER}>
|
||||||
Local Snapshot
|
Local Snapshot @localhost:3006
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
</div>
|
</div>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
|
|
@ -27,8 +27,7 @@ export enum SourcifySource {
|
||||||
|
|
||||||
const sourcifyIPNS =
|
const sourcifyIPNS =
|
||||||
"k51qzi5uqu5dll0ocge71eudqnrgnogmbr37gsgl12uubsinphjoknl6bbi41p";
|
"k51qzi5uqu5dll0ocge71eudqnrgnogmbr37gsgl12uubsinphjoknl6bbi41p";
|
||||||
const ipfsGatewayPrefix = `https://ipfs.io/ipns/${sourcifyIPNS}`;
|
const ipfsGatewayPrefix = `http://localhost:8080/ipns/${sourcifyIPNS}`;
|
||||||
// const ipfsGatewayPrefix = "http://localhost:8080/ipfs/QmWQoGfrLcizHueg3YkgDCh1S7SkfSP9A7H8YeZmUDfbnn"
|
|
||||||
const sourcifyHttpRepoPrefix = `https://repo.sourcify.dev`;
|
const sourcifyHttpRepoPrefix = `https://repo.sourcify.dev`;
|
||||||
const snapshotPrefix = "http://localhost:3006";
|
const snapshotPrefix = "http://localhost:3006";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue