Skip to content

Commit 5e75156

Browse files
committed
Suppress EACCES for ProtectWorker
1 parent 3a7ab22 commit 5e75156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/github/shadowsocks/bg/VpnService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class VpnService : BaseVpnService(), BaseService.Interface {
8181
} catch (e: IOException) {
8282
when ((e.cause as? ErrnoException)?.errno) {
8383
// also suppress ENONET (Machine is not on the network)
84-
OsConstants.EPERM, 64 -> Timber.d(e)
84+
OsConstants.EPERM, OsConstants.EACCES, 64 -> Timber.d(e)
8585
else -> Timber.w(e)
8686
}
8787
return@let false

0 commit comments

Comments
 (0)