Skip to content

Commit

Permalink
Merge branch 'master' into PIA-675_tvOS_compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-said-rehouni committed Nov 21, 2023
2 parents 2eb9b3e + cc600bd commit 253e929
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 457 deletions.
7 changes: 7 additions & 0 deletions PIA VPN.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2389,6 +2389,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
69B70AAE2ACBF51C0072A09D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
8269A6D3251CB5E0000B4DBF /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down
16 changes: 16 additions & 0 deletions PIA VPN/DNSList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,22 @@ class DNSList: NSObject {
return false
}

/// Return if a custom DNS is set for given protocol and its configured DNS servers
func hasCustomDNS(for vpnType: String, in dnsServers: [String]) -> Bool {
guard vpnType != IKEv2Profile.vpnType && !dnsServers.isEmpty else {
return false
}

for dns in self.dnsList {
for (_, ipsList) in dns {
if dnsServers == ipsList {
return true
}
}
}
return false
}

/// Updates the content of the dnsList object into the plist
private func updatePlist() {
(self.dnsList as NSArray).write(toFile: self.plistPathInDocument,
Expand Down
4 changes: 4 additions & 0 deletions PIA VPN/SwiftGen+Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,11 @@ internal enum L10n {
// MARK: - Implementation Details

extension L10n {
<<<<<<< HEAD
private static func tr(_ table: String, _ key: String, _ args: CVarArg..., fallback value: String) -> String {
=======
private static func tr(_ table: String, _ key: String, _ args: CVarArg..., fallback value: String? = nil) -> String {
>>>>>>> master
let format = BundleToken.bundle.localizedString(forKey: key, value: value, table: table)
return String(format: format, locale: Locale.current, arguments: args)
}
Expand Down
159 changes: 0 additions & 159 deletions Podfile

This file was deleted.

Loading

0 comments on commit 253e929

Please sign in to comment.