Upgrade ss-local to version 3.0.5

This commit is contained in:
Qiu Yuzhou
2017-03-22 22:36:05 +08:00
parent f61c0e5a0a
commit 74f1515f5f
11 changed files with 56 additions and 20 deletions

View File

@ -162,7 +162,9 @@ class ServerProfile: NSObject, NSCopying {
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 ota {
conf["auth"] = NSNumber(value: ota as Bool)
}
if enabledKcptun {
let localHost = defaults.string(forKey: "Kcptun.LocalHost")