diff options
author | Eric Kuck <eric@bluelinelabs.com> | 2018-12-16 23:51:25 -0600 |
---|---|---|
committer | Eric Kuck <eric@bluelinelabs.com> | 2018-12-16 23:51:25 -0600 |
commit | ed9b4c85edd17b2b9361f8c7a1a83f91f98cdb8f (patch) | |
tree | 5ba59b66646fe7eae8041558cb160506f4cba642 /WireGuard/WireGuard/Tunnel/NEVPNStatus+CustomStringConvertible.swift | |
parent | Potential fix for insertRowAtIndexPath crash (diff) | |
download | wireguard-apple-ed9b4c85edd17b2b9361f8c7a1a83f91f98cdb8f.tar.xz wireguard-apple-ed9b4c85edd17b2b9361f8c7a1a83f91f98cdb8f.zip |
Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertible
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'WireGuard/WireGuard/Tunnel/NEVPNStatus+CustomStringConvertible.swift')
-rw-r--r-- | WireGuard/WireGuard/Tunnel/NEVPNStatus+CustomStringConvertible.swift | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Tunnel/NEVPNStatus+CustomStringConvertible.swift b/WireGuard/WireGuard/Tunnel/NEVPNStatus+CustomStringConvertible.swift new file mode 100644 index 0000000..0668b8a --- /dev/null +++ b/WireGuard/WireGuard/Tunnel/NEVPNStatus+CustomStringConvertible.swift @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MIT +// Copyright © 2018 WireGuard LLC. All Rights Reserved. + +import Foundation +import NetworkExtension + +extension NEVPNStatus: CustomDebugStringConvertible { + public var debugDescription: String { + switch self { + case .connected: return "connected" + case .connecting: return "connecting" + case .disconnected: return "disconnected" + case .disconnecting: return "disconnecting" + case .reasserting: return "reasserting" + case .invalid: return "invalid" + } + } +} |