Commit 8933732e authored by Max Lv's avatar Max Lv

bug fix

parent 062f4970
......@@ -126,6 +126,7 @@ class ShadowVpnService extends VpnService {
resolver.setTimeout(5)
lookup.setResolver(resolver)
val records = lookup.run()
if (records == null) return None
for (r <- records) {
addrType match {
case Type.A =>
......@@ -219,7 +220,7 @@ class ShadowVpnService extends VpnService {
case None => resolved = false
}
}
if (resolved && handleConnection) {
notifyAlert(getString(R.string.forward_success), getString(R.string.service_running))
handler.sendEmptyMessageDelayed(MSG_CONNECT_SUCCESS, 500)
......
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