Checkpoint peering identity and opt-in discovery

This commit is contained in:
Codex committed 2026-10-13 22:00:54 +02:00
1 parent eba9b50e30
commit 47de081721
44 files changed
+1557 -55

No files matched your search

+3
View File
@@ -7,6 +7,7 @@ const { createWeebHttp } = require('../plugins/broker');
const { discoverWeebCatalog } = require('./weebcentral');
const { mangaDexInfo, discoverMangaDexCatalog } = require('./mangadex');
const { ArchiveControlError } = require('../lib/control');
const { adapterForPeer } = require('../../peering/adapter');
function controlledHttp(http, shouldStop) {
return { async get(...args) {
@@ -87,6 +88,8 @@ const adapters = [{
}];
function adapterFor(url) {
const peer = adapterForPeer(url);
if (peer) return peer;
for (const adapter of adapters) {
const info = adapter.match(url);
if (info) return { adapter, info };