mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-12-05 06:33:57 +09:00
* chore: bump version * feat: add awg3 support to selfhosted * chore: remove HeaderProtectionKey from ui * fix: fixed regexp in configure_container.sh for awg * chore: return server protocol version to config * fix: fixed native wg obfuscation * fix: fixed range validator for awg text field * feat: add warning for awg 1/2 * fix: remove warning from other protocols
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
#ifndef PROTOCOLUTILS_H
|
|
#define PROTOCOLUTILS_H
|
|
|
|
#include <QList>
|
|
#include <QMap>
|
|
#include <QString>
|
|
#include <QJsonObject>
|
|
|
|
#include "core/utils/protocolEnum.h"
|
|
#include "core/utils/constants/configKeys.h"
|
|
#include "core/utils/constants/protocolConstants.h"
|
|
|
|
namespace amnezia
|
|
{
|
|
namespace ProtocolUtils
|
|
{
|
|
QList<Proto> allProtocols();
|
|
|
|
// spelling may differ for various protocols - TCP for OpenVPN, tcp for others
|
|
TransportProto transportProtoFromString(QString p);
|
|
QString transportProtoToString(TransportProto proto, Proto p = Proto::Unknown);
|
|
|
|
Proto protoFromString(QString p);
|
|
QString protoToString(Proto p);
|
|
|
|
QMap<Proto, QString> protocolHumanNames();
|
|
QMap<Proto, QString> protocolDescriptions();
|
|
|
|
ServiceType protocolService(Proto p);
|
|
|
|
int getPortForInstall(Proto p);
|
|
|
|
int defaultPort(Proto p);
|
|
bool defaultPortChangeable(Proto p);
|
|
|
|
TransportProto defaultTransportProto(Proto p);
|
|
bool defaultTransportProtoChangeable(Proto p);
|
|
|
|
QString key_proto_config_data(Proto p);
|
|
QString key_proto_config_path(Proto p);
|
|
|
|
}
|
|
}
|
|
|
|
#endif // PROTOCOLUTILS_H
|
|
|
|
|