Add iPad support, auto-pinning, and comprehensive logging
- Adaptive iPhone/iPad layout with NavigationSplitView sidebar - Auto-detect SSL-pinned domains, fall back to passthrough - Certificate install via local HTTP server (Safari profile flow) - App Group-backed CA, per-domain leaf cert LRU cache - DB-backed config repository, Darwin notification throttling - Rules engine, breakpoint rules, pinned domain tracking - os.Logger instrumentation across tunnel/proxy/mitm/capture/cert/rules/db/ipc/ui - Fix dyld framework embed, race conditions, thread safety
This commit is contained in:
35
ProxyCore/Sources/DataLayer/Models/ProxyConfiguration.swift
Normal file
35
ProxyCore/Sources/DataLayer/Models/ProxyConfiguration.swift
Normal file
@@ -0,0 +1,35 @@
|
||||
import Foundation
|
||||
import GRDB
|
||||
|
||||
public struct ProxyConfiguration: Codable, FetchableRecord, MutablePersistableRecord, Sendable {
|
||||
public static let databaseTableName = "proxy_configuration"
|
||||
|
||||
public var id: Int64
|
||||
public var sslProxyingEnabled: Bool
|
||||
public var blockListEnabled: Bool
|
||||
public var breakpointEnabled: Bool
|
||||
public var noCachingEnabled: Bool
|
||||
public var dnsSpoofingEnabled: Bool
|
||||
public var hideSystemTraffic: Bool
|
||||
public var updatedAt: Double
|
||||
|
||||
public init(
|
||||
id: Int64 = 1,
|
||||
sslProxyingEnabled: Bool = false,
|
||||
blockListEnabled: Bool = false,
|
||||
breakpointEnabled: Bool = false,
|
||||
noCachingEnabled: Bool = false,
|
||||
dnsSpoofingEnabled: Bool = false,
|
||||
hideSystemTraffic: Bool = false,
|
||||
updatedAt: Double = Date().timeIntervalSince1970
|
||||
) {
|
||||
self.id = id
|
||||
self.sslProxyingEnabled = sslProxyingEnabled
|
||||
self.blockListEnabled = blockListEnabled
|
||||
self.breakpointEnabled = breakpointEnabled
|
||||
self.noCachingEnabled = noCachingEnabled
|
||||
self.dnsSpoofingEnabled = dnsSpoofingEnabled
|
||||
self.hideSystemTraffic = hideSystemTraffic
|
||||
self.updatedAt = updatedAt
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user