mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25:24 +00:00
feat: tailscale add host and copy ip, fix outbound fetch hang and plugin ESM warning
This commit is contained in:
1 parent
c21bca8cf0
commit
fbe736bc20
70 files changed
+1117
-1139
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user