mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(swift): Allow too many parameters in onSetInterfaceConfig (#8446)
We don't necessarily care if we slightly go over the function parameter count lint in `onSetInterfaceConfig`.
This commit is contained in:
@@ -360,6 +360,7 @@ extension Adapter {
|
||||
// MARK: Implementing CallbackHandlerDelegate
|
||||
|
||||
extension Adapter: CallbackHandlerDelegate {
|
||||
// swiftlint:disable:next function_parameter_count
|
||||
public func onSetInterfaceConfig(
|
||||
tunnelAddressIPv4: String,
|
||||
tunnelAddressIPv6: String,
|
||||
|
||||
@@ -17,6 +17,7 @@ extension RustString: @unchecked Sendable {}
|
||||
extension RustString: Error {}
|
||||
|
||||
public protocol CallbackHandlerDelegate: AnyObject {
|
||||
// swiftlint:disable:next function_parameter_count
|
||||
func onSetInterfaceConfig(
|
||||
tunnelAddressIPv4: String,
|
||||
tunnelAddressIPv6: String,
|
||||
@@ -31,7 +32,7 @@ public protocol CallbackHandlerDelegate: AnyObject {
|
||||
|
||||
public class CallbackHandler {
|
||||
public weak var delegate: CallbackHandlerDelegate?
|
||||
|
||||
// swiftlint:disable:next function_parameter_count
|
||||
func onSetInterfaceConfig(
|
||||
tunnelAddressIPv4: RustString,
|
||||
tunnelAddressIPv6: RustString,
|
||||
|
||||
@@ -36,7 +36,7 @@ class NetworkSettings {
|
||||
guard let domain = domain else {
|
||||
self.matchDomains = [""]
|
||||
self.searchDomains = [""]
|
||||
return;
|
||||
return
|
||||
}
|
||||
|
||||
self.matchDomains = ["", domain]
|
||||
|
||||
Reference in New Issue
Block a user