Commit b4b038a2 authored by Mygod's avatar Mygod

Fix listening address

parent c8166c0b
...@@ -129,9 +129,8 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro ...@@ -129,9 +129,8 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
val cmd = arrayListOf( val cmd = arrayListOf(
File((service as Context).applicationInfo.nativeLibraryDir, Executable.SS_LOCAL).absolutePath, File((service as Context).applicationInfo.nativeLibraryDir, Executable.SS_LOCAL).absolutePath,
"--stat-path", stat.absolutePath, "--stat-path", stat.absolutePath,
"--dns-relay", "127.0.0.1:${DataStore.portLocalDns}", "--dns-relay", "${DataStore.listenAddress}:${DataStore.portLocalDns}",
"--remote-dns", "${dns.host}:${if (dns.port < 0) 53 else dns.port}", "--remote-dns", "${dns.host}:${if (dns.port < 0) 53 else dns.port}",
"--local-dns", "127.0.0.1:8153",
"-c", configFile.absolutePath) "-c", configFile.absolutePath)
if (service.isVpnService) cmd += arrayListOf("--vpn") if (service.isVpnService) cmd += arrayListOf("--vpn")
if (extraFlag != null) cmd.add(extraFlag) if (extraFlag != null) cmd.add(extraFlag)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment