feat: tailscale add host and copy ip, fix outbound fetch hang and plugin ESM warning

This commit is contained in:
LukeGus committed 2026-09-25 13:06:33 -05:00
1 parent c21bca8cf0
commit fbe736bc20
70 files changed
+1117 -1139

No files matched your search

+7 -3
View File
@@ -237,12 +237,16 @@ export async function safeOutboundFetch(
});
try {
return await undiciFetch(url.toString(), {
const response = await undiciFetch(url.toString(), {
...options,
dispatcher,
redirect: "error",
});
} finally {
await dispatcher.close();
// close() waits for the body, which the caller reads after we return.
dispatcher.close().catch(() => {});
return response;
} catch (error) {
await dispatcher.destroy().catch(() => {});
throw error;
}
}