Fix DRM Check

This commit is contained in:
Stossy11 2024-12-09 20:32:21 +11:00
parent 9e09cb5767
commit db86daef39
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ struct MeloNXApp: App {
init() { init() {
DispatchQueue.main.async { DispatchQueue.main.async {
// drmcheck() drmcheck()
} }
} }
@ -27,7 +27,7 @@ struct MeloNXApp: App {
func drmcheck() { func drmcheck() {
if let deviceid = UIDevice.current.identifierForVendor?.uuidString, let base64device = deviceid.data(using: .utf8)?.base64EncodedString() { if let deviceid = UIDevice.current.identifierForVendor?.uuidString, let base64device = deviceid.data(using: .utf8)?.base64EncodedString() {
if let value = Bundle.main.infoDictionary?["MeloID"] as? String { if let value = Bundle.main.infoDictionary?["MeloID"] as? String {
if let url = URL(string: "https://950e-175-32-92-74.ngrok-free.app/auth/\(value)/\(base64device)") { if let url = URL(string: "https://mx.stossy11.com/auth/\(value)/\(base64device)") {
// Create a URLSession // Create a URLSession
let session = URLSession.shared let session = URLSession.shared