File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ actor Manager {
31
31
// The tunnel might be asked to start before the network interfaces have woken up from sleep
32
32
sessionConfig. waitsForConnectivity = true
33
33
// URLSession's waiting for connectivity sometimes hangs even when
34
- // the network is up so this is deliberately short (15s ) to avoid a
34
+ // the network is up so this is deliberately short (30s ) to avoid a
35
35
// poor UX where it appears stuck.
36
- sessionConfig. timeoutIntervalForResource = 15
36
+ sessionConfig. timeoutIntervalForResource = 30
37
37
try await download ( src: dylibPath, dest: dest, urlSession: URLSession ( configuration: sessionConfig) )
38
38
} catch {
39
39
throw . download( error)
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ public enum ValidationError: Error {
31
31
case . missingInfoPList:
32
32
" Info.plist is not embedded within the dylib. "
33
33
case . belowMinimumCoderVersion:
34
- " The Coder deployment must be version \( SignatureValidator . minimumCoderVersion) or higher to use Coder Desktop. "
34
+ """
35
+ The Coder deployment must be version \( SignatureValidator . minimumCoderVersion)
36
+ or higher to use Coder Desktop.
37
+ """
35
38
}
36
39
}
37
40
@@ -40,7 +43,7 @@ public enum ValidationError: Error {
40
43
41
44
public class SignatureValidator {
42
45
// Whilst older dylibs exist, this app assumes v2.20 or later.
43
- static let minimumCoderVersion = " 2.20 .0 "
46
+ static let minimumCoderVersion = " 2.19 .0 "
44
47
45
48
private static let expectedName = " CoderVPN "
46
49
private static let expectedIdentifier = " com.coder.Coder-Desktop.VPN.dylib "
@@ -53,6 +56,7 @@ public class SignatureValidator {
53
56
private static let signInfoFlags : SecCSFlags = . init( rawValue: kSecCSSigningInformation)
54
57
55
58
// `expectedVersion` must be of the form `[0-9]+.[0-9]+.[0-9]+`
59
+ // swiftlint:disable:next cyclomatic_complexity
56
60
public static func validate( path: URL , expectedVersion: String ) throws ( ValidationError) {
57
61
guard FileManager . default. fileExists ( atPath: path. path) else {
58
62
throw . fileNotFound
You can’t perform that action at this time.
0 commit comments