mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Connection string support for XRay protocol (#777)
* Connection string support for XRay protocol
This commit is contained in:
+6
-1
@@ -4,6 +4,7 @@
|
||||
#include <QRegExp>
|
||||
#include <QRegularExpression>
|
||||
#include <QString>
|
||||
#include <QJsonDocument>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include "Windows.h"
|
||||
@@ -15,7 +16,11 @@ class Utils : public QObject
|
||||
|
||||
public:
|
||||
static QString getRandomString(int len);
|
||||
|
||||
static QString SafeBase64Decode(QString string);
|
||||
static QString VerifyJsonString(const QString &source);
|
||||
static QString JsonToString(const QJsonObject &json, QJsonDocument::JsonFormat format);
|
||||
static QString JsonToString(const QJsonArray &array, QJsonDocument::JsonFormat format);
|
||||
static QJsonObject JsonFromString(const QString &string);
|
||||
static QString executable(const QString &baseName, bool absPath);
|
||||
static QString usrExecutable(const QString &baseName);
|
||||
static QString systemLogPath();
|
||||
|
||||
Reference in New Issue
Block a user