Skip to content

Commit

Permalink
Merge branch 'master' into dns-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Jan 30, 2019
2 parents 932a1d0 + db6c29b commit d21a94e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/com/github/shadowsocks/bg/VpnService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
/**
* https://android.googlesource.com/platform/prebuilts/runtime/+/94fec32/appcompat/hiddenapi-light-greylist.txt#9466
*/
private val getInt: Method = FileDescriptor::class.java.getDeclaredMethod("getInt$")
private val getInt = FileDescriptor::class.java.getDeclaredMethod("getInt$")
}

class CloseableFd(val fd: FileDescriptor) : Closeable {
Expand Down Expand Up @@ -103,7 +103,7 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
field = value
if (active && Build.VERSION.SDK_INT >= 22) setUnderlyingNetworks(underlyingNetworks)
}
private val underlyingNetworks = underlyingNetwork?.let { arrayOf(it) }
private val underlyingNetworks get() = underlyingNetwork?.let { arrayOf(it) }

override fun onBind(intent: Intent) = when (intent.action) {
SERVICE_INTERFACE -> super<BaseVpnService>.onBind(intent)
Expand Down

0 comments on commit d21a94e

Please sign in to comment.