1. condition fix

This commit is contained in:
vadym 2020-08-05 14:48:57 -07:00
parent 53c945430d
commit 6f311b7213

View File

@ -216,9 +216,7 @@ class YggdrasilTunService : VpnService() {
try {
// Read the outgoing packet from the input stream.
val length = tunInputStream.read(buffer)
if(length>0) {
yggConduitEndpoint.send(buffer.sliceArray(IntRange(0, length - 1)))
}
} catch (e: IOException) {
e.printStackTrace()
}