Update On Thu Jul 11 20:31:01 CEST 2024

This commit is contained in:
github-action[bot]
2024-07-11 20:31:01 +02:00
parent 5a06147e95
commit e20082c9c9
113 changed files with 14850 additions and 5393 deletions
@@ -457,14 +457,11 @@ function main() {
node_cache[groupHash] = {};
const res = wGET(url);
if (!res) {
if (isEmpty(res)) {
log(sprintf('Failed to fetch resources from %s.', url));
continue;
}
push(node_result, []);
const subindex = length(node_result) - 1;
let nodes;
try {
nodes = json(res).servers || json(res);
@@ -502,7 +499,8 @@ function main() {
config.packet_encoding = packet_encoding;
config.grouphash = groupHash;
push(node_result[subindex], config);
push(node_result, []);
push(node_result[length(node_result)-1], config);
node_cache[groupHash][confHash] = config;
node_cache[groupHash][nameHash] = config;
@@ -510,7 +508,10 @@ function main() {
}
}
log(sprintf('Successfully fetched %s nodes of total %s from %s.', count, length(nodes), url));
if (count == 0)
log(sprintf('No valid node found in %s.', url));
else
log(sprintf('Successfully fetched %s nodes of total %s from %s.', count, length(nodes), url));
}
if (isEmpty(node_result)) {