Skip to content

Commit

Permalink
Tiny cleanup dor iOS [NO CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pokamest committed May 21, 2023
1 parent 3900b23 commit 18ac192
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions client/platforms/ios/iostunnel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -688,23 +688,14 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
}
*/
private func setupAndlaunchOpenVPN(withConfig ovpnConfiguration: Data, withShadowSocks viaSS: Bool = false, completionHandler: @escaping (Error?) -> Void) {
wg_log(.info, message: "Inside setupAndlaunchOpenVPN()")
let str = String(decoding: ovpnConfiguration, as: UTF8.self)
wg_log(.error, message: "---> OPENVPN config: \(str)")


let configuration = OpenVPNConfiguration()
configuration.fileContent = ovpnConfiguration
if(str.contains("cloak")){
configuration.setPTCloak();
}
if viaSS {
// configuration.settings = [
// "remote": "137.74.6.148 1194",
// "proto": "tcp",
// "link-mtu": "1480",
// "tun-mtu": "1460",
// ]
}

let evaluation: OpenVPNConfigurationEvaluation
do {
evaluation = try ovpnAdapter.apply(configuration: configuration)
Expand Down

0 comments on commit 18ac192

Please sign in to comment.