mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
25 lines
583 B
Swift
25 lines
583 B
Swift
//
|
|
// NEOnDemandRuleAction+CustomStringConvertible.swift
|
|
// DNSecure
|
|
//
|
|
// Created by Kenta Kubo on 12/20/20.
|
|
//
|
|
|
|
import NetworkExtension
|
|
|
|
extension NEOnDemandRuleAction: CustomStringConvertible {
|
|
public var description: String {
|
|
switch self {
|
|
case .connect:
|
|
return "Apply settings"
|
|
case .disconnect:
|
|
return "Do not apply settings"
|
|
case .evaluateConnection:
|
|
return "Apply with excluded domains"
|
|
case .ignore:
|
|
return "As is"
|
|
default:
|
|
return "Unknown"
|
|
}
|
|
}
|
|
}
|