mirror of
https://github.com/PawanOsman/ChatGPT.git
synced 2026-06-02 06:14:25 +02:00
Merge pull request #96 from MahdeenSky/fixed_notfounderror
Fix: The "file" argument must be of type string. (Cloudflared)
This commit is contained in:
@@ -385,6 +385,11 @@ async function DownloadCloudflared(): Promise<string> {
|
||||
}
|
||||
|
||||
async function StartCloudflaredTunnel(cloudflaredPath: string): Promise<string> {
|
||||
if (!cloudflaredPath) {
|
||||
console.error("Failed to download Cloudflared executable.");
|
||||
return null;
|
||||
}
|
||||
|
||||
const localUrl = `http://localhost:${port}`;
|
||||
return new Promise<string>((resolve, reject) => {
|
||||
cloudflared = spawn(cloudflaredPath, ["tunnel", "--url", localUrl]);
|
||||
|
||||
Reference in New Issue
Block a user