UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines (23 loc) • 477 B
//#region src/infra/loopback-connect.ts function createLoopbackConnectOptions(e) { return { host: "localhost", port: e, autoSelectFamily: true, lookup(e, t, n) { queueMicrotask(() => { if (t.all) n(null, [{ address: "127.0.0.1", family: 4 }, { address: "::1", family: 6 }]); else if (t.family === 6) n(null, "::1", 6); else n(null, "127.0.0.1", 4); }); } }; } //#endregion export { createLoopbackConnectOptions as t };