Improves domain blocking and proxy handling#7754
Merged
2dust merged 1 commit into2dust:masterfrom Aug 14, 2025
Merged
Conversation
Contributor
Author
|
还有这边序列化字段不全 v2rayN/v2rayN/ServiceLib/Models/V2rayConfig.cs Lines 204 to 217 in f45290e 以及这个问题 2dust/v2rayNG#4838 |
Owner
这里 |
Contributor
Author
public class Dns4Ray
{
public Dictionary<string, object>? hosts { get; set; }
public List<object> servers { get; set; }
public string? clientIp { get; set; }
public string? queryStrategy { get; set; }
public bool? disableCache { get; set; }
public bool? disableFallback { get; set; }
public bool? disableFallbackIfMatch { get; set; }
public bool? useSystemHosts { get; set; }
public string? tag { get; set; }
}
public class DnsServer4Ray
{
public string? address { get; set; }
public List<string>? domains { get; set; }
public bool? skipFallback { get; set; }
public List<string>? expectedIPs { get; set; }
public List<string>? unexpectedIPs { get; set; }
public string? clientIp { get; set; }
public string? queryStrategy { get; set; }
public int? timeoutMs { get; set; }
public bool? disableCache { get; set; }
public bool? finalQuery { get; set; }
public string? tag { get; set; }
}这样就都能转换了 多类型的也就 hosts 和 servers ,这两个用 object 就够了 |
Contributor
Author
这个可以给整个 DNS 模块加一个 tag,路由最后加个 DNS 模块走代理,国内国外 DNS 的分流还是靠路由规则吧,要不不太好搞,并且 Add tag for DnsServerObject 是 25.5.16 才有的,旧版本可能没法用 |
Owner
不好弄就不处理就行了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.