mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 07:56:30 +00:00
1. condition fix
This commit is contained in:
parent
53c945430d
commit
6f311b7213
@ -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)))
|
||||
}
|
||||
yggConduitEndpoint.send(buffer.sliceArray(IntRange(0, length - 1)))
|
||||
} catch (e: IOException) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user