diff --git a/client/ui/models/services/mtProxyConfigModel.cpp b/client/ui/models/services/mtProxyConfigModel.cpp index fe384d03c..4aa24f548 100644 --- a/client/ui/models/services/mtProxyConfigModel.cpp +++ b/client/ui/models/services/mtProxyConfigModel.cpp @@ -507,7 +507,6 @@ bool MtProxyConfigModel::isValidFakeTlsDomain(const QString &domain) const { if (!re.exactMatch(t)) { return false; } - // ee + 32 hex (base secret) + hex(UTF-8 domain); keep headroom under typical client limits. if (t.toUtf8().size() > 111) { return false; } @@ -581,7 +580,6 @@ QString MtProxyConfigModel::sanitizeMtProxyTagFieldText(const QString &input) co if (trimmed.startsWith(QLatin1String("0x"), Qt::CaseInsensitive)) { trimmed = trimmed.mid(2).trimmed(); } - // Prefer a contiguous 32-hex run (paste from bot message with extra text). static const QRegularExpression runHex(QStringLiteral(R"(([0-9a-fA-F]{32}))")); const QRegularExpressionMatch m = runHex.match(trimmed); if (m.hasMatch()) { diff --git a/client/ui/models/services/telemtConfigModel.cpp b/client/ui/models/services/telemtConfigModel.cpp index cc51c805e..0bb05a44a 100644 --- a/client/ui/models/services/telemtConfigModel.cpp +++ b/client/ui/models/services/telemtConfigModel.cpp @@ -431,7 +431,6 @@ bool TelemtConfigModel::isValidPublicHost(const QString &host) const { return NetworkUtilities::checkIPv4Format(t); } if (a.protocol() == QHostAddress::IPv6Protocol) { - // Reject unusable special addresses such as "::" (any), loopback and null. if (a.isNull() || a.isLoopback() || a == QHostAddress(QHostAddress::AnyIPv6)) { return false; } @@ -541,7 +540,6 @@ bool TelemtConfigModel::isValidFakeTlsDomain(const QString &domain) const { if (!re.exactMatch(t)) { return false; } - // ee + 32 hex (base secret) + hex(UTF-8 domain); keep headroom under typical client limits. if (t.toUtf8().size() > 111) { return false; } @@ -661,7 +659,6 @@ QString TelemtConfigModel::sanitizeMtProxyTagFieldText(const QString &input) con if (trimmed.startsWith(QLatin1String("0x"), Qt::CaseInsensitive)) { trimmed = trimmed.mid(2).trimmed(); } - // Prefer a contiguous 32-hex run (paste from bot message with extra text). static const QRegularExpression runHex(QStringLiteral(R"(([0-9a-fA-F]{32}))")); const QRegularExpressionMatch m = runHex.match(trimmed); if (m.hasMatch()) { diff --git a/client/ui/models/services/telemtConfigModel.h b/client/ui/models/services/telemtConfigModel.h index bf1a29bcc..1ba38a8a7 100644 --- a/client/ui/models/services/telemtConfigModel.h +++ b/client/ui/models/services/telemtConfigModel.h @@ -88,7 +88,6 @@ public slots: Q_INVOKABLE void removeAdditionalSecret(int idx); - /// Current additional secrets list from in-memory config (for QML snapshot vs. unsaved adds). Q_INVOKABLE QVariantList additionalSecretsList() const; Q_INVOKABLE QString generateQrCode(const QString &text);