-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ipproxy and db-android #1171
Conversation
@@ -112,8 +112,9 @@ class GoTun2SocksProvider( | |||
val intf: ParcelFileDescriptor? = createBuilder(vpnService, builder) | |||
Logger.debug(TAG, "Running tun2socks") | |||
if (intf != null) { | |||
val tunFd = intf!!.detachFd() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm calling detachFd
here now to detach the native fd from the ParcelFileDescriptor and let ipproxy be responsible for closing it when it is shutdown. This addresses this "failed to exchange ownership of file descriptor" error:
09-12 07:17:30.537 6233 7652 D Database: BEGIN
09-12 07:17:30.539 6233 7652 D Database: SAVEPOINT 'f2df8955-d49f-4fa9-8400-04e0442f4370' created
09-12 07:17:30.541 6233 6371 D Database: RELEASE 'f2df8955-d49f-4fa9-8400-04e0442f4370'
09-12 07:17:30.542 6233 7652 D LanternVpnService: Done stopping
09-12 07:17:30.547 6233 6372 E GoLog : fdsan: failed to exchange ownership of file descriptor: fd 183 is owned by unique_fd 0x7a5708d05c, was expected to be unowned
Did some testing, and this is working really well for me on Android 14! Merging.. |
@@ -396,7 +396,7 @@ dependencies { | |||
// from https://github.com/getlantern/opus_android | |||
implementation files('libs/opuslib-release.aar') | |||
implementation 'com.github.getlantern:secrets-android:f6a7a69f3d' | |||
implementation 'com.github.getlantern:db-android:863128d1f8' | |||
implementation 'com.github.getlantern:db-android:d92368c7f' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not work, you still need to update messaging-android
.
No description provided.