From 27add56b38ebf8195f5d261b70cb92cd4afc4ef3 Mon Sep 17 00:00:00 2001 From: qinyuhang Date: Sun, 5 Feb 2017 20:10:04 +0800 Subject: [PATCH] Remove OTA --- .../Base.lproj/PreferencesWindowController.xib | 15 ++------------- ShadowsocksX-NG/ServerProfile.swift | 6 ------ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib index e7fef5f..ef993a6 100644 --- a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib +++ b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib @@ -1,5 +1,5 @@ - + @@ -18,7 +18,6 @@ - @@ -202,13 +201,6 @@ - @@ -303,7 +295,6 @@ - @@ -315,7 +306,6 @@ - @@ -327,8 +317,8 @@ + - @@ -357,7 +347,6 @@ - diff --git a/ShadowsocksX-NG/ServerProfile.swift b/ShadowsocksX-NG/ServerProfile.swift index 428a768..16fff85 100644 --- a/ShadowsocksX-NG/ServerProfile.swift +++ b/ShadowsocksX-NG/ServerProfile.swift @@ -18,7 +18,6 @@ class ServerProfile: NSObject { var method:String = "aes-128-cfb" var password:String = "" var remark:String = "" - var ota: Bool = false // onetime authentication var ssrProtocol:String = "origin" var ssrProtocolParam:String = "" @@ -47,9 +46,6 @@ class ServerProfile: NSObject { if let remark = data["Remark"] { profile.remark = remark as! String } - if let ota = data["OTA"] { - profile.ota = ota as! Bool - } if let ssrObfs = data["ssrObfs"] { profile.ssrObfs = ssrObfs as! String } @@ -86,7 +82,6 @@ class ServerProfile: NSObject { d["Method"] = method as AnyObject? d["Password"] = password as AnyObject? d["Remark"] = remark as AnyObject? - d["OTA"] = ota as AnyObject? d["ssrProtocol"] = ssrProtocol as AnyObject? d["ssrProtocolParam"] = ssrProtocolParam as AnyObject? d["ssrObfs"] = ssrObfs as AnyObject? @@ -106,7 +101,6 @@ class ServerProfile: NSObject { conf["local_port"] = NSNumber(value: UInt16(defaults.integer(forKey: "LocalSocks5.ListenPort")) as UInt16) conf["local_address"] = defaults.string(forKey: "LocalSocks5.ListenAddress") as AnyObject? conf["timeout"] = NSNumber(value: UInt32(defaults.integer(forKey: "LocalSocks5.Timeout")) as UInt32) - conf["auth"] = NSNumber(value: ota as Bool) if(!ssrObfs.isEmpty){ conf["protocol"] = ssrProtocol as AnyObject?