Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Update OpenVPN library to v0.7.5.1 #422

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@
-dontwarn org.conscrypt.*
-dontwarn org.openjsse.javax.net.ssl.*
-dontwarn org.openjsse.net.ssl.*

-keepclassmembers class com.wireguard.android.backend.GoBackend {
<fields>;
}
-keepclassmembers class com.wireguard.android.backend.GoBackend$GhettoCompletableFuture {
<methods>;
}
-keepclassmembers class android.net.VpnService {
<methods>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ServerSelectionViewModel @Inject constructor(
viewModelScope.launch {
var retryCount = 0
while (hasNoMoreServers() && retryCount < 5) {
delay(5_00L)
delay(500L)
Log.i(TAG, "No servers found, retrying once more just in case. [$retryCount]")
refresh()
retryCount++
Expand Down
7 changes: 5 additions & 2 deletions common/src/main/cpp/jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void proxyReady() {
return;
}
JNIEnv *env;
__android_log_print(ANDROID_LOG_WARN, "Common-JNI", "ProxyGuard is READY!");
__android_log_print(ANDROID_LOG_WARN, "Common-JNI", "ProxyGuard is ready!");
bool didAttach = GetJniEnv(globalVM, &env);
jfieldID callbackFieldId = env->GetStaticFieldID(globalBackendClass, "callbackFunction","Lorg/eduvpn/common/GoBackend$Callback;");
jobject callbackField = env->GetStaticObjectField(globalBackendClass, callbackFieldId);
Expand Down Expand Up @@ -222,7 +222,10 @@ extern "C" JNIEXPORT jstring JNICALL
Java_org_eduvpn_common_GoBackend_addServer(JNIEnv *env, jobject /* this */, jint serverType, jstring id) {
uintptr_t cookie = CookieNew();
const char *id_str = env->GetStringUTFChars(id, nullptr);
SetState(1); // Change first to main state to make sure we are not in a previous state.
if (InState(11).r0 != 0) {
// If we just disconnected, we need to manually set the state back to main
SetState(1);
}
char *error = AddServer(cookie, (int)serverType, (char *)id_str, nullptr);
CookieDelete(cookie);
// Do not delete the cookie, because it might be reused later in the flow
Expand Down
Loading