feat: enhance local proxy error handling and configuration management

- Added signal for local proxy start failure to Settings.
- Updated CoreController to emit failure signals with descriptive messages when local proxy fails to start.
- Refactored XrayController to accept JSON configuration directly, improving configuration handling.
- Removed unused config file loading logic to streamline the XrayController's functionality.
This commit is contained in:
aiamnezia
2026-01-15 21:04:10 +04:00
parent 412e69af9b
commit 84d908d4d8
7 changed files with 15 additions and 58 deletions
+1 -3
View File
@@ -10,15 +10,13 @@ public:
explicit XrayController(QObject* parent = nullptr);
~XrayController();
bool start(const QString& configPath);
bool start(const QString& configJson);
bool stop();
bool isXrayRunning() const;
qint64 getProcessId() const;
QString getError() const;
private:
bool loadConfigFile(const QString& configPath, QString& configContent);
bool m_isRunning {false};
QString m_lastError;
};