Skip to content

Commit f1a148e

Browse files
authored
feat: add support for 256-65535 domain index range
1 parent 661a200 commit f1a148e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • play-services-fido/core/src/main/kotlin/org/microg/gms/fido/core/hybrid

play-services-fido/core/src/main/kotlin/org/microg/gms/fido/core/hybrid/extensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private fun generateDomain(domainId: Int): String {
4747
if (domainId < 2) {
4848
return FIXED_SERVER_HOSTS[domainId]
4949
}
50-
require(domainId <= 65535) {
50+
require(domainId in 256..65535) {
5151
String.format(Locale.US, "This domainId: %d was an unrecognized assigned domain value.", domainId)
5252
}
5353
val buffer = ByteBuffer.allocate(31).apply {
@@ -91,4 +91,4 @@ fun <T> CancellableContinuation<T>.tryResumeData(value: T) {
9191

9292
fun <T> CancellableContinuation<T>.tryResumeWithError(e: Throwable) {
9393
if (!isCompleted) resumeWithException(e)
94-
}
94+
}

0 commit comments

Comments
 (0)