mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 02:40:20 +08:00
fix: added missing QUrl include
This commit is contained in:
parent
aa92a336ff
commit
adfccda2ce
@ -1 +1 @@
|
||||
5962
|
||||
5963
|
||||
|
@ -220,7 +220,7 @@ namespace Qv2ray::base::objects
|
||||
//
|
||||
struct CertificateObject
|
||||
{
|
||||
QString usage;
|
||||
QString usage = "encipherment";
|
||||
QString certificateFile;
|
||||
QString keyFile;
|
||||
QList<QString> certificate;
|
||||
@ -235,7 +235,7 @@ namespace Qv2ray::base::objects
|
||||
bool allowInsecure = false;
|
||||
bool allowInsecureCiphers = false;
|
||||
bool disableSessionResumption = true;
|
||||
QList<QString> alpn;
|
||||
QList<QString> alpn = { "h2", "http/1.1" };
|
||||
QList<CertificateObject> certificates;
|
||||
bool disableSystemRoot;
|
||||
JSONSTRUCT_REGISTER(TLSObject,
|
||||
|
@ -283,13 +283,10 @@ namespace Qv2ray::components::plugins
|
||||
}
|
||||
return {};
|
||||
}
|
||||
const QString QvPluginHost::SerializeOutbound(const QString &protocol, //
|
||||
const QJsonObject &outboundSettings, //
|
||||
const QString &alias, //
|
||||
const QString &groupName, //
|
||||
bool *status) const
|
||||
const QString QvPluginHost::SerializeOutbound(const QString &protocol, const QJsonObject &settings, const QString &name, const QString &group,
|
||||
bool *ok) const
|
||||
{
|
||||
*status = false;
|
||||
*ok = false;
|
||||
for (const auto &plugin : plugins)
|
||||
{
|
||||
if (plugin.isLoaded && plugin.metadata.Components.contains(COMPONENT_OUTBOUND_HANDLER))
|
||||
@ -297,8 +294,8 @@ namespace Qv2ray::components::plugins
|
||||
auto serializer = plugin.pluginInterface->GetOutboundHandler();
|
||||
if (serializer && serializer->SupportedProtocols().contains(protocol))
|
||||
{
|
||||
auto link = serializer->SerializeOutbound(protocol, alias, groupName, outboundSettings);
|
||||
*status = true;
|
||||
auto link = serializer->SerializeOutbound(protocol, name, group, settings);
|
||||
*ok = true;
|
||||
return link;
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
#include "3rdparty/QJsonStruct/QJsonIO.hpp"
|
||||
|
||||
#include <QUrl>
|
||||
|
||||
const Qv2rayPlugin::OutboundInfoObject BuiltinSerializer::GetOutboundInfo(const QString &protocol, const QJsonObject &outbound) const
|
||||
{
|
||||
Qv2rayPlugin::OutboundInfoObject obj;
|
||||
|
Loading…
Reference in New Issue
Block a user