Fix for Codacy: variable name should be between 3 and 40 characters long (#608)

Tiny fixes for iOS
This commit is contained in:
isamnezia 2024-02-19 16:13:10 +03:00 committed by GitHub
parent e402cacc05
commit 9c4ee4014d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 27 deletions

View file

@ -175,7 +175,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
return
}
guard let wgConfigStr = try? JSONDecoder().decode(WGConfig.self, from: wgConfig).wg,
guard let wgConfigStr = try? JSONDecoder().decode(WGConfig.self, from: wgConfig).str,
let tunnelConfiguration = try? TunnelConfiguration(fromWgQuickConfig: wgConfigStr)
else {
wg_log(.error, message: "Can't parse WireGuard config")