VPNC control and logging (#748)

VPNC control and logging
This commit is contained in:
isamnezia
2024-04-15 01:04:01 +03:00
committed by GitHub
parent f588fe29db
commit 151e662027
11 changed files with 149 additions and 35 deletions
@@ -200,7 +200,7 @@ extension PacketTunnelProvider {
// }
func stopWireguard(with reason: NEProviderStopReason, completionHandler: @escaping () -> Void) {
wg_log(.info, staticMessage: "Stopping tunnel")
wg_log(.info, message: "Stopping tunnel: reason: \(reason.description)")
wgAdapter.stop { error in
ErrorNotifier.removeLastErrorFile()