From 603fe941c13fa295e1bf948d86cfb80ab90d98fc Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:19:58 +0800 Subject: [PATCH] increase cloudflared check size --- koboldcpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index fd89d14fd..f682b2c18 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -2234,13 +2234,13 @@ def setuptunnel(): tunnelproc.wait() if os.name == 'nt': - if os.path.exists("cloudflared.exe") and os.path.getsize("cloudflared.exe") > 100000: + if os.path.exists("cloudflared.exe") and os.path.getsize("cloudflared.exe") > 1000000: print("Cloudflared file exists, reusing it...") else: print("Downloading Cloudflare Tunnel for Windows...") subprocess.run("curl -fL https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe -o cloudflared.exe", shell=True, capture_output=True, text=True, check=True, encoding='utf-8') else: - if os.path.exists("cloudflared-linux-amd64") and os.path.getsize("cloudflared-linux-amd64") > 100000: + if os.path.exists("cloudflared-linux-amd64") and os.path.getsize("cloudflared-linux-amd64") > 1000000: print("Cloudflared file exists, reusing it...") else: print("Downloading Cloudflare Tunnel for Linux...")