We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentafcef21 commit0653766Copy full SHA for 0653766
Coder Desktop/VPN/Manager.swift
@@ -31,9 +31,9 @@ actor Manager {
31
// The tunnel might be asked to start before the network interfaces have woken up from sleep
32
sessionConfig.waitsForConnectivity=true
33
// URLSession's waiting for connectivity sometimes hangs even when
34
- // the network is up so this is deliberately short (15s) to avoid a
+ // the network is up so this is deliberately short (30s) to avoid a
35
// poor UX where it appears stuck.
36
- sessionConfig.timeoutIntervalForResource=15
+ sessionConfig.timeoutIntervalForResource=30
37
tryawaitdownload(src: dylibPath, dest: dest, urlSession:URLSession(configuration: sessionConfig))
38
}catch{
39
throw.download(error)
Coder Desktop/VPNLib/Download.swift
@@ -31,7 +31,10 @@ public enum ValidationError: Error {
case.missingInfoPList:
"Info.plist is not embedded within the dylib."
case.belowMinimumCoderVersion:
-"The Coder deployment must be version\(SignatureValidator.minimumCoderVersion) or higher to use Coder Desktop."
+"""
+ The Coder deployment must be version\(SignatureValidator.minimumCoderVersion)
+ or higher to use Coder Desktop.
}
40
@@ -53,6 +56,7 @@ public class SignatureValidator {
53
56
privatestaticletsignInfoFlags: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
60
publicstaticfunc validate(path:URL, expectedVersion:String)throws(ValidationError){
61
guardFileManager.default.fileExists(atPath: path.path)else{
62
throw.fileNotFound