From 91ea0fe7e5a786265d277c41d7f0fae90e7805b7 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Wed, 24 Oct 2018 12:26:21 +0530 Subject: [PATCH] Tunnel view model: Populate interface's public key --- WireGuard/WireGuard/UI/TunnelViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift index d5ff112..b28abeb 100644 --- a/WireGuard/WireGuard/UI/TunnelViewModel.swift +++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift @@ -61,6 +61,7 @@ class TunnelViewModel { guard let config = validatedConfiguration else { return } scratchpad[.name] = config.name scratchpad[.privateKey] = config.privateKey.base64EncodedString() + scratchpad[.publicKey] = config.publicKey.base64EncodedString() if (!config.addresses.isEmpty) { scratchpad[.addresses] = config.addresses.map { $0.stringRepresentation() }.joined(separator: ", ") }