|
|
@ -670,7 +670,7 @@ const lokiFetch = async (url, options = {}, targetNode = null) => {
|
|
|
|
const result = await response.json();
|
|
|
|
const result = await response.json();
|
|
|
|
log.warn(
|
|
|
|
log.warn(
|
|
|
|
`lokirpc:::lokiFetch ${type} - wrong swarm, now looking at snodes`,
|
|
|
|
`lokirpc:::lokiFetch ${type} - wrong swarm, now looking at snodes`,
|
|
|
|
result.snode
|
|
|
|
result.snodes
|
|
|
|
);
|
|
|
|
);
|
|
|
|
const newSwarm = result.snodes ? result.snodes : [];
|
|
|
|
const newSwarm = result.snodes ? result.snodes : [];
|
|
|
|
throw new textsecure.WrongSwarmError(newSwarm);
|
|
|
|
throw new textsecure.WrongSwarmError(newSwarm);
|
|
|
@ -859,5 +859,6 @@ const lokiRpc = (
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module.exports = {
|
|
|
|
lokiRpc,
|
|
|
|
lokiRpc,
|
|
|
|
|
|
|
|
BAD_PATH,
|
|
|
|
sendOnionRequestLsrpcDest,
|
|
|
|
sendOnionRequestLsrpcDest,
|
|
|
|
};
|
|
|
|
};
|
|
|
|