Files
amnezia-client/client/core/protocols/protocolUtils.h
T
vkamn 2ad6721061 feat: awg3 support selfhosted (#2908)
* 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
2026-08-06 10:54:26 +08:00

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