Files
appchk-app/GlassVPN/zhuhaow-NEKit/Rule/DirectRule.swift
2020-03-24 21:12:58 +01:00

17 lines
420 B
Swift
Executable File

import Foundation
/// The rule matches every request and returns direct adapter.
///
/// This is equivalent to create an `AllRule` with a `DirectAdapterFactory`.
open class DirectRule: AllRule {
open override var description: String {
return "<DirectRule>"
}
/**
Create a new `DirectRule` instance.
*/
public init() {
super.init(adapterFactory: DirectAdapterFactory())
}
}