From 58b70533a8e8aa53cdf97cd13f613b74c7216285 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Sun, 5 Jan 2020 22:02:37 -0500 Subject: [PATCH] added / to ipfs hash path --- chainlink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainlink.py b/chainlink.py index 6f1e882..1d1aeb2 100755 --- a/chainlink.py +++ b/chainlink.py @@ -60,7 +60,7 @@ def redirectDomain(domain, action=None): body = json.loads(dnslookup.content) print(body) response.status = 302 - if not body['ipfs']['html'].startswith('ip'): + if not body['ipfs']['html'].startswith('/ip'): ipfshash = "ipfs/" + body['ipfs']['html'] else: ipfshash = body['ipfs']['html']