2dust
2024-11-02 14:36:45 +08:00
parent da219228fa
commit 9c92fdc257
2 changed files with 11 additions and 9 deletions

View File

@@ -637,7 +637,8 @@ data class V2rayConfig(
var port: Int? = null,
var domains: List<String>? = null,
var expectIPs: List<String>? = null,
val clientIp: String? = null
val clientIp: String? = null,
val skipFallback: Boolean? = null,
)
}

View File

@@ -333,10 +333,10 @@ object V2rayConfigManager {
if (proxyDomain.size > 0) {
servers.add(
V2rayConfig.DnsBean.ServersBean(
remoteDns.first(),
53,
proxyDomain,
null
address = remoteDns.first(),
port = 53,
domains = proxyDomain,
expectIPs = null
)
)
}
@@ -349,10 +349,11 @@ object V2rayConfigManager {
if (directDomain.size > 0) {
servers.add(
V2rayConfig.DnsBean.ServersBean(
domesticDns.first(),
53,
directDomain,
if (isCnRoutingMode) geoipCn else null
address = domesticDns.first(),
port = 53,
domains = directDomain,
expectIPs = if (isCnRoutingMode) geoipCn else null,
skipFallback = true
)
)
}