refactor: Name and comment variable properly

This commit is contained in:
oSumAtrIX 2024-05-31 02:02:06 +02:00
parent 28f6ac150e
commit 45b6a08980
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -25,12 +25,12 @@ object SpoofClientPatch : BaseSpoofClientPatch(
}
override fun Set<MethodFingerprintResult>.patchUserAgent(context: BytecodeContext) {
// Use a random user agent.
val randomName = (0..100000).random()
// Use a random number as the platform in the user agent string.
val platformName = (0..100000).random()
first().mutableMethod.addInstructions(
1,
"const-string v3, \"$randomName\"",
"const-string v3, \"$platformName\"",
)
}
}