fix FakeTLS domain input & port space & workers

This commit is contained in:
dranik
2026-06-15 18:23:55 +03:00
parent 60904b9fde
commit b5c047565c
3 changed files with 87 additions and 11 deletions
@@ -398,6 +398,9 @@ bool MtProxyConfigModel::isValidPublicHost(const QString &host) const {
return NetworkUtilities::checkIPv4Format(t);
}
if (a.protocol() == QHostAddress::IPv6Protocol) {
if (a.isNull() || a.isLoopback() || a == QHostAddress(QHostAddress::AnyIPv6)) {
return false;
}
return true;
}
static const QRegularExpression onlyAsciiDigits(QStringLiteral(R"(^\d+$)"));