feat: Passwortanforderungen für AP und verbesserte Fehlerbehandlung bei WiFi-Verbindungen; Versionsnummer auf 1.0.73 erhöht

This commit is contained in:
2026-05-17 17:14:51 +02:00
parent f96c656385
commit e3e1c11a8a
3 changed files with 18 additions and 7 deletions

View File

@@ -53,7 +53,7 @@ DEFAULT_CONFIG = {
'verify_checksum': False, 'delete_source': False,
# WiFi
'wifi_ssid': '', 'wifi_password': '',
'ap_ssid': 'PiCopy', 'ap_password': 'PiCopy,',
'ap_ssid': 'PiCopy', 'ap_password': 'PiCopy123',
# WireGuard
'wireguard_auto': False,
}
@@ -70,6 +70,9 @@ def load_cfg():
except Exception: pass
except Exception as e:
log.warning(f'config.json nicht lesbar: {e}')
# Migration: altes 7-Zeichen-Standardpasswort auf gültiges WPA2-Passwort anheben
if cfg.get('ap_password') == 'PiCopy,':
cfg['ap_password'] = 'PiCopy123'
return cfg