diff --git a/play-services-fido/core/src/main/kotlin/org/microg/gms/fido/core/hybrid/extensions.kt b/play-services-fido/core/src/main/kotlin/org/microg/gms/fido/core/hybrid/extensions.kt index f3ded2fab3..1a7544d3f3 100644 --- a/play-services-fido/core/src/main/kotlin/org/microg/gms/fido/core/hybrid/extensions.kt +++ b/play-services-fido/core/src/main/kotlin/org/microg/gms/fido/core/hybrid/extensions.kt @@ -47,7 +47,7 @@ private fun generateDomain(domainId: Int): String { if (domainId < 2) { return FIXED_SERVER_HOSTS[domainId] } - require(domainId < 256) { + require(domainId in 256..65535) { String.format(Locale.US, "This domainId: %d was an unrecognized assigned domain value.", domainId) } val buffer = ByteBuffer.allocate(31).apply {