diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn-executable.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn-executable.so index daba0bc..6a21ed7 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn-executable.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn-executable.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn.so index e44c650..8146cc7 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/arm64-v8a/libopenvpn.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn-executable.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn-executable.so index 05e4af8..891bf50 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn-executable.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn-executable.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn.so index df43a0c..9e74d88 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/armeabi-v7a/libopenvpn.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn-executable.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn-executable.so index 1961ae2..3619707 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn-executable.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn-executable.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn.so index 74c48bc..0408a40 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86/libopenvpn.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn-executable.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn-executable.so index 7a11036..caead0b 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn-executable.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn-executable.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn.so b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn.so index 92b9fa5..3c0e6db 100644 Binary files a/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn.so and b/vpnmanager/vpnservicemanager/vpnprotocol/openvpn/src/main/jniLibs/x86_64/libopenvpn.so differ diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/FilterAdditionalOpenVpnParams.kt b/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/FilterAdditionalOpenVpnParams.kt index e2b6ebc..32be8de 100644 --- a/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/FilterAdditionalOpenVpnParams.kt +++ b/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/FilterAdditionalOpenVpnParams.kt @@ -115,7 +115,10 @@ internal class FilterAdditionalOpenVpnParams : IFilterAdditionalOpenVpnParams { "--topology", "--tun-mtu", "--tun-mtu-extra", - "--windows-driver" + "--windows-driver", + "--cipher", + "--pia-signal-settings", + "--ncp-disable" ) } } diff --git a/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/GenerateOpenVpnSettings.kt b/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/GenerateOpenVpnSettings.kt index 3781402..0fe0f6e 100644 --- a/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/GenerateOpenVpnSettings.kt +++ b/vpnmanager/vpnservicemanager/vpnprotocol/src/main/java/com/kape/vpnprotocol/domain/usecases/openvpn/GenerateOpenVpnSettings.kt @@ -86,13 +86,17 @@ internal class GenerateOpenVpnSettings( "--data-ciphers", dataCiphers, "--auth", "SHA256", "--auth-nocache", - "--explicit-exit-notify", "2", "--script-security", "2", "--remote-cert-tls", "server", "--verb", "3", "--mute-replay-warnings" ) + if (protocolConfiguration.openVpnClientConfiguration.server.transport == VPNTransportProtocol.UDP) { + commandLineParams.add("--explicit-exit-notify") + commandLineParams.add("2") + } + commandLineParams.addAll(protocolConfiguration.openVpnClientConfiguration.additionalParameters.split("\\s+".toRegex()).filter { it.isNotBlank() }) protocolConfiguration.openVpnClientConfiguration.socksProxy?.let {