Fix broken == on OpenVPN.Configuration
StaticKey was not comparing data by value.
This commit is contained in:
parent
02d04185d3
commit
f33a854943
|
@ -214,6 +214,12 @@ extension OpenVPN {
|
||||||
return try? JSONEncoder().encode(self)
|
return try? JSONEncoder().encode(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: Equatable
|
||||||
|
|
||||||
|
public static func ==(lhs: Self, rhs: Self) -> Bool {
|
||||||
|
return lhs.secureData.toData() == rhs.secureData.toData()
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: Codable
|
// MARK: Codable
|
||||||
|
|
||||||
public init(from decoder: Decoder) throws {
|
public init(from decoder: Decoder) throws {
|
||||||
|
|
Loading…
Reference in New Issue