update fmt

This commit is contained in:
arm64v8a
2023-07-19 11:36:11 +09:00
parent 359c630c20
commit 87c90e19fb
3 changed files with 11 additions and 7 deletions

View File

@@ -37,9 +37,9 @@ namespace NekoGui_fmt {
stream->security = GetQueryValue(query, "security", "");
stream->sni = GetQueryValue(query, "sni");
if (link.startsWith("https")) stream->security = "tls";
return true;
return !serverAddress.isEmpty();
}
bool TrojanVLESSBean::TryParseLink(const QString &link) {
@@ -87,7 +87,7 @@ namespace NekoGui_fmt {
flow = GetQueryValue(query, "flow", "");
}
return !password.isEmpty();
return !(password.isEmpty() || serverAddress.isEmpty());
}
bool ShadowSocksBean::TryParseLink(const QString &link) {
@@ -124,7 +124,7 @@ namespace NekoGui_fmt {
method = url.userName();
password = url.password();
}
return true;
return !(serverAddress.isEmpty() || method.isEmpty() || password.isEmpty());
}
bool VMessBean::TryParseLink(const QString &link) {
@@ -171,7 +171,7 @@ namespace NekoGui_fmt {
username = url.userName();
password = url.password();
return !(username.isEmpty() || password.isEmpty());
return !(username.isEmpty() || password.isEmpty() || serverAddress.isEmpty());
}
bool HysteriaBean::TryParseLink(const QString &link) {