mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 12:35:46 +00:00
Fix
This commit is contained in:
parent
54c525fbf2
commit
d069ea27f8
2 changed files with 3 additions and 3 deletions
|
|
@ -101,7 +101,7 @@ public partial class CoreConfigSingboxService
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (testRule.domain_keyword?.Count > 0 && !kvp.Key.StartsWith("keyword:"))
|
if (testRule.domain_keyword?.Count > 0 && !kvp.Key.Contains(':'))
|
||||||
{
|
{
|
||||||
testRule.domain = testRule.domain_keyword;
|
testRule.domain = testRule.domain_keyword;
|
||||||
testRule.domain_keyword = null;
|
testRule.domain_keyword = null;
|
||||||
|
|
@ -213,7 +213,7 @@ public partial class CoreConfigSingboxService
|
||||||
// The matching format (domain:, full:, etc.) is the same as the domain
|
// The matching format (domain:, full:, etc.) is the same as the domain
|
||||||
// in the commonly used Routing System. The difference is that without a prefix,
|
// in the commonly used Routing System. The difference is that without a prefix,
|
||||||
// it defaults to using the full: prefix (similar to the common hosts file syntax).
|
// it defaults to using the full: prefix (similar to the common hosts file syntax).
|
||||||
if (rule.domain_keyword?.Count > 0 && !kvp.Key.StartsWith("keyword:"))
|
if (rule.domain_keyword?.Count > 0 && !kvp.Key.Contains(':'))
|
||||||
{
|
{
|
||||||
rule.domain = rule.domain_keyword;
|
rule.domain = rule.domain_keyword;
|
||||||
rule.domain_keyword = null;
|
rule.domain_keyword = null;
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ public partial class CoreConfigSingboxService
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (domainRule.domain_keyword?.Count > 0 && !host.StartsWith("keyword:"))
|
if (domainRule.domain_keyword?.Count > 0 && !host.Contains(':'))
|
||||||
{
|
{
|
||||||
domainRule.domain = domainRule.domain_keyword;
|
domainRule.domain = domainRule.domain_keyword;
|
||||||
domainRule.domain_keyword = null;
|
domainRule.domain_keyword = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue