parent
197d29042c
commit
d6e27938bc
|
@ -166,7 +166,7 @@ extension SessionProxy {
|
||||||
public var renegotiatesAfter: TimeInterval?
|
public var renegotiatesAfter: TimeInterval?
|
||||||
|
|
||||||
/// Server is patched for the PIA VPN provider.
|
/// Server is patched for the PIA VPN provider.
|
||||||
public var usesPIAPatches: Bool
|
public var usesPIAPatches: Bool?
|
||||||
|
|
||||||
/// :nodoc:
|
/// :nodoc:
|
||||||
public init(ca: CryptoContainer) {
|
public init(ca: CryptoContainer) {
|
||||||
|
@ -239,6 +239,6 @@ extension SessionProxy {
|
||||||
public let renegotiatesAfter: TimeInterval?
|
public let renegotiatesAfter: TimeInterval?
|
||||||
|
|
||||||
/// - Seealso: `SessionProxy.ConfigurationBuilder.usesPIAPatches`
|
/// - Seealso: `SessionProxy.ConfigurationBuilder.usesPIAPatches`
|
||||||
public let usesPIAPatches: Bool
|
public let usesPIAPatches: Bool?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -609,7 +609,7 @@ public class SessionProxy {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func hardResetPayload() -> Data? {
|
private func hardResetPayload() -> Data? {
|
||||||
guard !configuration.usesPIAPatches else {
|
guard !(configuration.usesPIAPatches ?? false) else {
|
||||||
let caMD5 = TLSBox.md5(forCertificatePath: caURL.path)
|
let caMD5 = TLSBox.md5(forCertificatePath: caURL.path)
|
||||||
log.debug("CA MD5 is: \(caMD5)")
|
log.debug("CA MD5 is: \(caMD5)")
|
||||||
return try? PIAHardReset(
|
return try? PIAHardReset(
|
||||||
|
|
Loading…
Reference in New Issue