"""Client configuration.""" import os from pathlib import Path # Application info APP_NAME = "mGuard VPN Client" APP_VERSION = "1.0.0" # Default server settings DEFAULT_SERVER_URL = "http://localhost:8000" # OpenVPN paths if os.name == 'nt': # Windows OPENVPN_EXE = r"C:\Program Files\OpenVPN\bin\openvpn.exe" OPENVPN_CONFIG_DIR = Path.home() / "OpenVPN" / "config" else: # Linux/Mac OPENVPN_EXE = "/usr/sbin/openvpn" OPENVPN_CONFIG_DIR = Path.home() / ".openvpn" # Ensure config directory exists OPENVPN_CONFIG_DIR.mkdir(parents=True, exist_ok=True) # Local storage APP_DATA_DIR = Path.home() / ".mguard-vpn" APP_DATA_DIR.mkdir(parents=True, exist_ok=True) # Settings file SETTINGS_FILE = APP_DATA_DIR / "settings.json"