Commit 724d61eb authored by Mygod's avatar Mygod

Ensure dns.host is not null

parent d467ce27
...@@ -121,7 +121,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro ...@@ -121,7 +121,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
}.let { dns -> }.let { dns ->
cmd += arrayListOf( cmd += arrayListOf(
"--dns-relay", "${DataStore.listenAddress}:${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}")
} }
if (route != Acl.ALL) { if (route != Acl.ALL) {
......
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