Notă
Accesul la această pagină necesită autorizare. Puteți încerca să vă conectați sau să modificați directoarele.
Accesul la această pagină necesită autorizare. Puteți încerca să modificați directoarele.
Restores the system proxy settings that Dev Proxy changed. Use it to restore network access after Dev Proxy was killed or crashed.
Synopsis
devproxy system-proxy reset [options]
Options:
-f, --force Reset the system proxy even if a running Dev Proxy instance owns it
--log-level <log-level> Level of messages to log
--no-color Disable colored output
--output <format> Output format
-h, --help Show help
Usage
devproxy system-proxy reset
Arguments
None
Options
| Name | Description | Allowed values | Default |
|---|---|---|---|
-f, --force |
Reset the system proxy even if a running Dev Proxy instance owns it | n/a | n/a |
--log-level <log-level> |
Level of messages to log | Trace, Debug, Information, Warning, Error, Critical, None |
Information |
--no-color |
Disable colored output | n/a | n/a |
--output <format> |
Output format | Text, Json |
Text |
Remarks
Before Dev Proxy registers itself as the system proxy, it saves your current system proxy settings, for example a corporate proxy that you configured, in the system-proxy-backup.json file in the Dev Proxy configuration folder (%LOCALAPPDATA%\dev-proxy on Windows, ~/.config/dev-proxy on macOS). When Dev Proxy stops, it restores these settings. If Dev Proxy is killed or crashes, it can't restore the settings, and your machine keeps using a proxy that no longer runs, which blocks your network connection.
The system-proxy reset command restores the saved system proxy settings and removes the records of Dev Proxy instances that are no longer running:
- On Windows, it restores the
ProxyEnableandProxyServervalues in the Internet Settings registry key. - On macOS, it restores the web proxy (HTTP) and secure web proxy (HTTPS) servers and their enabled state for each network service. macOS doesn't let Dev Proxy restore proxy passwords. If your proxy requires authentication, Dev Proxy shows a warning, and you need to enter your credentials again in System Settings > Network > Details > Proxies.
- On Linux, Dev Proxy doesn't change the system proxy settings, so the command doesn't do anything.
If there are no saved settings, the command turns off the system proxy.
If a running Dev Proxy instance is registered as the system proxy, the command doesn't change the settings and exits with code 1. Stop the instance using devproxy stop, or use the --force option to reset the settings anyway.
The command doesn't load your Dev Proxy configuration file or plugins, so it works even when your configuration is invalid.
You don't always need to run this command. When you start Dev Proxy, it automatically restores the system proxy settings left by a Dev Proxy instance that was killed or crashed.
JSON output
With --output json, the command emits a result record with a message property that describes the outcome:
devproxy system-proxy reset --output json
{"type":"result","data":{"message":"Restored the system proxy settings from before Dev Proxy started."},"category":"SystemProxyCommand","timestamp":"2026-12-02T10:15:00.0000000Z"}
Exit codes
| Code | Meaning |
|---|---|
0 |
Dev Proxy restored the system proxy settings, or there was nothing to reset |
1 |
A running Dev Proxy instance owns the system proxy, or Dev Proxy couldn't restore the settings |
2 |
Invalid input or usage |