Skip to content

Commit

Permalink
Prepend https:// to creatorNodeEndpoint (#4748)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie committed Feb 9, 2023
1 parent 8077dde commit b1de448
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions creator-node/src/serviceRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ class ServiceRegistry {
* Poll L1 SPFactory for spID & set spID config once recovered.
*/
async _recoverNodeL1Identity() {
if (!config.get('creatorNodeEndpoint')?.startsWith('http')) {
config.set(
'creatorNodeEndpoint',
'https://' + config.get('creatorNodeEndpoint')
)
}
const endpoint = config.get('creatorNodeEndpoint')

const retryTimeoutMs = 5000 // 5sec
Expand Down

0 comments on commit b1de448

Please sign in to comment.