Replies: 4 comments 12 replies
-
看了下好像是本地有个localDns的server,不知道这个localDns修改哪里可以关掉 |
Beta Was this translation helpful? Give feedback.
0 replies
-
试了下去掉local DNS proxy (把dnsRelay设置为false),好像直接就不能用了 @madeye @Mygod ProxyInstance.kt // local DNS proxy
if (dnsRelay) try {
URI("dns://${profile.remoteDns}")
} catch (e: URISyntaxException) {
throw BaseService.ExpectedExceptionWrapper(e)
}.let { dns ->
put(JSONObject().apply {
put("local_address", DataStore.listenAddress)
put("local_port", DataStore.portLocalDns)
put("local_dns_address", "local_dns_path")
put("remote_dns_address", dns.host ?: "0.0.0.0")
put("remote_dns_port", if (dns.port < 0) 53 else dns.port)
put("protocol", "dns")
})
} |
Beta Was this translation helpful? Give feedback.
5 replies
-
@Mygod 能帮忙解释一下,为什么dnsRelay不能设置为false嘛? 我看udpFallback是可以设置为false的,但是data.proxy 设置为false,就没法用了 BaseService.kt data.proxy!!.start(this,
File(Core.deviceStorage.noBackupFilesDir, "stat_main"),
File(configRoot, CONFIG_FILE),
if (udpFallback == null && data.proxy?.plugin == null) "tcp_and_udp" else "tcp_only")
if (udpFallback?.plugin != null) throw ExpectedExceptionWrapper(IllegalStateException(
"UDP fallback cannot have plugins"))
udpFallback?.start(this,
File(Core.deviceStorage.noBackupFilesDir, "stat_udp"),
File(configRoot, CONFIG_FILE_UDP),
"udp_only", false) |
Beta Was this translation helpful? Give feedback.
0 replies
-
The old behavior is harmful and removed. shadowsocks/shadowsocks-libev#2627 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
目前的这个版本,vpn模式下,后台拿到的都是ip,看起来好像是local dns已经缓存了
看以前老版本里面,即使配置了远程dns,后台还是可以请求到域名
Beta Was this translation helpful? Give feedback.
All reactions