From 6d283926446c2546e8de6daa2c94ac039d1f44c5 Mon Sep 17 00:00:00 2001 From: DuckSoft Date: Tue, 16 Jun 2020 17:52:12 +0800 Subject: [PATCH] fix share url problem --- core/Serializer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Serializer.cpp b/core/Serializer.cpp index cfc7f5e..3720c68 100644 --- a/core/Serializer.cpp +++ b/core/Serializer.cpp @@ -4,9 +4,9 @@ const QString NaiveProxySerializer::SerializeOutbound(const QString &, const QSt { QUrl url; if (const auto protocol = object["protocol"].toString(); protocol != "https" && protocol != "quic") - url.setScheme("https"); + url.setScheme("naive+https"); else - url.setScheme(protocol); + url.setScheme("naive+" + protocol); if (const auto username = object["username"].toString(); !username.isEmpty()) url.setUserName(username);