Skip to content

Commit

Permalink
Merge pull request #624 from wschwab/patch-1
Browse files Browse the repository at this point in the history
use http for .onion content
  • Loading branch information
makoto authored Mar 23, 2020
2 parents b4d7368 + 5387900 commit a64d9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Links/ContentHashLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ContentHashLink = ({ value, contentType }) => {
externalLink = `https://swarm-gateways.net/bzz://${decoded}`
url = `bzz://${decoded}`
} else if (protocolType === 'onion' || protocolType === 'onion3') {
externalLink = `https://${decoded}.onion`
externalLink = `http://${decoded}.onion`
url = `onion://${decoded}`
} else {
console.warn(`Unsupported protocol ${protocolType}`)
Expand Down

0 comments on commit a64d9b5

Please sign in to comment.