aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-22 03:41:54 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-22 03:42:01 +0100
commit8365adf4351c380004d2c871a81231083b2373cc (patch)
treefbc5b14bb9977c33bbe31a1a436cbc44d40e7b5a /WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
parentRTL support (diff)
downloadwireguard-apple-8365adf4351c380004d2c871a81231083b2373cc.tar.xz
wireguard-apple-8365adf4351c380004d2c871a81231083b2373cc.zip
Localize remaining strings in network extension
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift')
-rw-r--r--WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
index 98634fd2..d2179e0a 100644
--- a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
+++ b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
@@ -3,6 +3,14 @@
import NetworkExtension
+enum PacketTunnelProviderError: String, Error {
+ case savedProtocolConfigurationIsInvalid
+ case dnsResolutionFailure
+ case couldNotStartBackend
+ case couldNotDetermineFileDescriptor
+ case couldNotSetNetworkSettings
+}
+
extension NETunnelProviderProtocol {
enum Keys: String {