feat: add support for 256-65535 domain index range

This commit is contained in:
Lucas 2026-06-09 19:10:29 +08:00 committed by Marvin W
parent 92758893a8
commit 97c9927e92

View file

@ -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 {