Add validation in GetProxyConfiguration to detect when stored proxy config belongs to a different proxy type (e.g., Traefik config on a Caddy server) and trigger regeneration with a warning log. Clear cached proxy configuration and settings when proxy type is changed to prevent stale configs from being reused. Includes tests verifying config rejection on type mismatch and graceful fallback on invalid YAML. |
||
|---|---|---|
| .. | ||
| CheckProxy.php | ||
| GetProxyConfiguration.php | ||
| SaveProxyConfiguration.php | ||
| StartProxy.php | ||
| StopProxy.php | ||