[F] Fix dns

pull/132/head
Azalea 2025-03-21 16:58:00 -04:00
parent 2def7a8861
commit bfdcdc30d6
2 changed files with 2 additions and 3 deletions

View File

@ -3,6 +3,7 @@ package icu.samnyan.aqua.net.transfer
import ext.header
import ext.post
import ext.request
import java.net.URI
import icu.samnyan.aqua.sega.aimedb.AimeDbClient
import icu.samnyan.aqua.sega.allnet.AllNetBillingDecoder
import icu.samnyan.aqua.sega.allnet.AllNetBillingDecoder.decodeAllNetResp
@ -23,7 +24,7 @@ class AllNetClient(val dns: String, val keychip: String, val game: String, val v
if (keychip.length == 11) keychip
else keychip.substring(0, 4) + keychip.substring(5, 12)
}
val aime by lazy { AimeDbClient(game, keychipShort, dns.substringAfter("://").substringBefore(":").substringBefore("/")) }
val aime by lazy { AimeDbClient(game, keychipShort, URI(dns).host) }
// Send AllNet PowerOn request to obtain game URL
val gameUrl by lazy {

View File

@ -164,6 +164,4 @@ class OngekiDataBroker(allNet: AllNetClient, log: (String) -> Unit): DataBroker(
userKopList = "GetUserKopApi".get("userKopList", userId)
}.toJson()
}
}
}