From 25aa05498d690d931557bc9c6ad8ab832df27eb1 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Thu, 23 Aug 2018 23:59:59 +0200 Subject: [PATCH] Enable LZO framing for the sake of Demo --- Demo/BasicTunnel-iOS/ViewController.swift | 7 +++---- Demo/BasicTunnel-macOS/ViewController.swift | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Demo/BasicTunnel-iOS/ViewController.swift b/Demo/BasicTunnel-iOS/ViewController.swift index 1ed184c..c0b9ebd 100644 --- a/Demo/BasicTunnel-iOS/ViewController.swift +++ b/Demo/BasicTunnel-iOS/ViewController.swift @@ -36,6 +36,7 @@ extension ViewController { builder.cipher = .aes128cbc builder.digest = .sha1 builder.mtu = 1350 + builder.LZOFraming = true builder.renegotiatesAfterSeconds = nil builder.shouldDebug = true builder.debugLogKey = "Log" @@ -76,8 +77,6 @@ class ViewController: UIViewController, URLSessionDataDelegate { textServer.text = "germany" textDomain.text = "privateinternetaccess.com" -// textServer.text = "159.122.133.238" -// textDomain.text = "" textPort.text = "1198" switchTCP.isOn = false textUsername.text = "myusername" @@ -121,9 +120,9 @@ class ViewController: UIViewController, URLSessionDataDelegate { @IBAction func tcpClicked(_ sender: Any) { if switchTCP.isOn { - textPort.text = "443" + textPort.text = "502" } else { - textPort.text = "8080" + textPort.text = "1198" } } diff --git a/Demo/BasicTunnel-macOS/ViewController.swift b/Demo/BasicTunnel-macOS/ViewController.swift index 7baf53c..7f911bd 100644 --- a/Demo/BasicTunnel-macOS/ViewController.swift +++ b/Demo/BasicTunnel-macOS/ViewController.swift @@ -37,6 +37,7 @@ extension ViewController { builder.cipher = .aes128cbc builder.digest = .sha1 builder.mtu = 1350 + builder.LZOFraming = true builder.renegotiatesAfterSeconds = nil builder.shouldDebug = true builder.debugLogKey = "Log" @@ -71,10 +72,7 @@ class ViewController: NSViewController { textServer.stringValue = "germany" textDomain.stringValue = "privateinternetaccess.com" -// textServer.text = "159.122.133.238" -// textDomain.text = "" textPort.stringValue = "1198" -// textPort.text = "8080" textUsername.stringValue = "myusername" textPassword.stringValue = "mypassword"