Skip to content

Commit

Permalink
fixup! Set "Direct only" to false as default
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Oct 7, 2024
1 parent 6eb7147 commit bd6c1a5
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,14 @@ class ManagementService(

suspend fun setDaitaEnabled(enabled: Boolean): Either<SetDaitaSettingsError, Unit> =
Either.catch {
val daitaSettings =
ManagementInterface.DaitaSettings.newBuilder().setEnabled(enabled).build()
grpc.setDaitaSettings(daitaSettings)
}
val daitaSettings =
ManagementInterface.DaitaSettings.newBuilder().setEnabled(enabled)
// TODO: Before Multihop is supported on Android, calling `setDirectOnly` with false
// will cause undefined behaviour.
.setDirectOnly(true)
.build()
grpc.setDaitaSettings(daitaSettings)
}
.mapLeft(SetDaitaSettingsError::Unknown)
.mapEmpty()

Expand Down

0 comments on commit bd6c1a5

Please sign in to comment.