浏览代码

release: allow on cellular and do not wait for connection

osy 1 年之前
父节点
当前提交
39d806bbbf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Platform/UTMReleaseHelper.swift

+ 2 - 2
Platform/UTMReleaseHelper.swift

@@ -47,10 +47,10 @@ class UTMReleaseHelper: ObservableObject {
             return
         }
         let configuration = URLSessionConfiguration.ephemeral
-        configuration.allowsCellularAccess = false
+        configuration.allowsCellularAccess = true
         configuration.allowsExpensiveNetworkAccess = false
         configuration.allowsConstrainedNetworkAccess = false
-        configuration.waitsForConnectivity = true
+        configuration.waitsForConnectivity = false
         configuration.httpAdditionalHeaders = ["Accept": "application/vnd.github+json",
                                                "X-GitHub-Api-Version": "2022-11-28"]
         let session = URLSession(configuration: configuration)