-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize mullvad daemon directly in vpn service on create
As a consequence move the address resolve to the daemon
- Loading branch information
Showing
16 changed files
with
168 additions
and
197 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/constant/DiConstant.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package net.mullvad.mullvadvpn.lib.common.constant | ||
|
||
const val GRPC_SOCKET_FILE_NAMED_ARGUMENT = "RPC_SOCKET" | ||
const val FILES_DIR_NAMED_ARGUMENT = "FILES_DIR" | ||
const val CACHE_DIR_NAMED_ARGUMENT = "CACHE_DIR" |
12 changes: 0 additions & 12 deletions
12
android/lib/endpoint/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/ApiEndpoint.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
.../endpoint/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/ApiEndpointConfiguration.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...d/lib/endpoint/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/ApiEndpointOverride.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package net.mullvad.mullvadvpn.lib.endpoint | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
data class ApiEndpointOverride( | ||
val hostname: String, | ||
val port: Int = CUSTOM_ENDPOINT_HTTPS_PORT, | ||
val disableAddressCache: Boolean = true, | ||
val disableTls: Boolean = false, | ||
val forceDirectConnection: Boolean = true, | ||
) : Parcelable { | ||
companion object { | ||
const val CUSTOM_ENDPOINT_HTTPS_PORT = 443 | ||
} | ||
} |
21 changes: 0 additions & 21 deletions
21
...int/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/CustomApiEndpointConfiguration.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...nt/src/main/kotlin/net/mullvad/mullvadvpn/lib/endpoint/DefaultApiEndpointConfiguration.kt
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/DaemonConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package net.mullvad.mullvadvpn.service | ||
|
||
import java.io.File | ||
import net.mullvad.mullvadvpn.lib.endpoint.ApiEndpointOverride | ||
|
||
data class DaemonConfig( | ||
val rpcSocket: File, | ||
val filesDir: File, | ||
val cacheDir: File, | ||
val apiEndpointOverride: ApiEndpointOverride?, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/di/ApiEndpointModule.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.