logtool fix, reboot, only ap mode

This commit is contained in:
Thaddeus Hughes
2026-04-09 07:41:15 -05:00
parent 837ec18fad
commit b0b317a0fe
43 changed files with 3470 additions and 1068 deletions

View File

@@ -58,6 +58,11 @@ def _normalize_source(raw: str) -> tuple:
if raw.endswith('.bin'):
return False, raw
if raw.startswith('http://') or raw.startswith('https://'):
# Append /log if URL has no path (or just /)
from urllib.parse import urlparse
p = urlparse(raw)
if p.path in ('', '/'):
raw = raw.rstrip('/') + '/log'
return True, raw
return True, f'http://{raw}/log'