@ -5,8 +5,20 @@
"contentProxyUrl": "random.snode",
"localServerPort": "8081",
"defaultPoWDifficulty": "100",
"seedNodeUrl": "3.104.19.14",
"seedNodePort": "22023",
"seedNodeList": [
{
"ip": "3.104.19.14",
"port": "22023"
},
"ip": "13.238.53.205",
"port": "38157"
"ip": "imaginary.stream",
}
],
"disableAutoUpdate": false,
"updatesUrl": "https://updates2.signal.org/desktop",
"updatesPublicKey":
@ -94,10 +94,11 @@ class LokiSnodeAPI {
storage_port: true,
};
const seedNode = window.seedNodeList[Math.floor(Math.random() * window.seedNodeList.length)];
try {
const result = await rpc(
`http://${window.seedNodeUrl}`,
window.seedNodePort,
`http://${seedNode.ip}`,
seedNode.port,
'get_n_service_nodes',
params,
{}, // Options
@ -156,8 +156,7 @@ function prepareURL(pathSegments, moreKeys) {
cdnUrl: config.get('cdnUrl'),
localServerPort: config.get('localServerPort'),
defaultPoWDifficulty: config.get('defaultPoWDifficulty'),
seedNodeUrl: config.get('seedNodeUrl'),
seedNodePort: config.get('seedNodePort'),
seedNodeList: JSON.stringify(config.get('seedNodeList')),
certificateAuthority: config.get('certificateAuthority'),
environment: config.environment,
node_version: process.versions.node,
@ -305,8 +305,7 @@ window.WebAPI = initializeWebAPI({
proxyUrl: config.proxyUrl,
});
window.seedNodeUrl = config.seedNodeUrl;
window.seedNodePort = config.seedNodePort;
window.seedNodeList = JSON.parse(config.seedNodeList);
const LokiSnodeAPI = require('./js/modules/loki_snode_api');
window.lokiSnodeAPI = new LokiSnodeAPI({