Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit ca7568b

Browse files
committed
chore: fix linting
1 parent 6536d3c commit ca7568b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/components/libp2p.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ function defaultBundle ({ datastore, peerInfo, peerBook, options, config }) {
5050
const delegateAddr = multiaddr(delegateString).toOptions()
5151
const delegatedApiOptions = {
5252
host: delegateAddr.host,
53-
protocol: delegateAddr.port == 443 ? 'https' : 'http',
53+
// port is a string atm, so we need to convert for the check
54+
protocol: parseInt(delegateAddr.port) === 443 ? 'https' : 'http',
5455
port: delegateAddr.port
5556
}
5657
contentRouting = [new DelegatedContentRouter(peerInfo.id, delegatedApiOptions)]

0 commit comments

Comments
 (0)