fix: unified auto_make_url for all API base_url formats, closes #12

This commit is contained in:
Liang Jiaqing
2026-03-08 10:24:54 +08:00
parent 5eac3c1027
commit 14f1009ddc
2 changed files with 9 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
import webview, threading, subprocess, sys, time, os, ctypes, atexit, socket, random
WINDOW_WIDTH, WINDOW_HEIGHT, RIGHT_PADDING, TOP_PADDING = 600, 900, 0, 300
WINDOW_WIDTH, WINDOW_HEIGHT, RIGHT_PADDING, TOP_PADDING = 600, 900, 0, 100
def find_free_port(lo=18501, hi=18599):
ports = list(range(lo, hi+1)); random.shuffle(ports)