Skip to content

Commit

Permalink
fix(uniregistrar): use 0.0.0.0 instead of localhost on fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Mar 4, 2024
1 parent 7e64b4a commit ba072c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions universal-registrar/restroom.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ app.post('/1.0/create', async (req, res) => {
var url;
var status;
if (req.body.jobId) {
url = 'http://localhost:3000/api/create-2-sign.chain';
url = 'http://0.0.0.0:3000/api/create-2-sign.chain';
status = 201;
} else {
if (checkverificationMethod(req.body)) {
Expand All @@ -101,7 +101,7 @@ app.post('/1.0/create', async (req, res) => {
});
return;
}
url = 'http://localhost:3000/api/create-1-checks.chain';
url = 'http://0.0.0.0:3000/api/create-1-checks.chain';
status = 200
}
const r = await fetch(url, {
Expand Down Expand Up @@ -141,7 +141,7 @@ app.post('/1.0/update', async (req, res) => {
var url;
var status;
if (req.body.jobId) {
url = 'http://localhost:3000/api/update-2-sign.chain';
url = 'http://0.0.0.0:3000/api/update-2-sign.chain';
status = 201;
} else {
if (!isOperationValid(req.body)) {
Expand All @@ -166,7 +166,7 @@ app.post('/1.0/update', async (req, res) => {
});
return;
}
url = 'http://localhost:3000/api/update-1-checks.chain';
url = 'http://0.0.0.0:3000/api/update-1-checks.chain';
status = 200;
}
const r = await fetch(url, {
Expand Down Expand Up @@ -199,7 +199,7 @@ app.post('/1.0/deactivate', async (req, res) => {
var url;
var status;
if (req.body.jobId) {
url = 'http://localhost:3000/api/deactivate-2-sign.chain';
url = 'http://0.0.0.0:3000/api/deactivate-2-sign.chain';
status = 201;
} else {
if (!req.body.did) {
Expand All @@ -213,7 +213,7 @@ app.post('/1.0/deactivate', async (req, res) => {
});
return;
}
url = 'http://localhost:3000/api/deactivate-1-checks.chain';
url = 'http://0.0.0.0:3000/api/deactivate-1-checks.chain';
status = 200;
}
const r = await fetch(url, {
Expand Down

0 comments on commit ba072c4

Please sign in to comment.